Questions tagged [surface-shader]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

How to modify the z depth value inside the vertex function of a surface shader?

I wrote the following surface shader. The idea is to increase the Z depth value of vertices, after projection. ...
0
votes
1answer
71 views

Painter's theorem inside and outside test [closed]

I have read from Hearn and Baker computer graphics book. I read the test#2 painter's theorem which image is given below. This image showing surface S is completely behind the surface S', by checking ...
0
votes
1answer
40 views

Unity: Opacity over Distance with Surface Shaders

I want to tweak the alpha value based on the distance to the camera. But I see no way of passing the vertex position on to the surface function using surface shaders. Not a problem with frag shader. ...
0
votes
1answer
71 views

Pass equations into shaders to define graphics - HLSL or other shaders

Is it possible with HLSL (or other popular shader languages) to pass instead of an image, an equation that would define the pixel color / position output by the shader? This would allow for more ...
1
vote
1answer
708 views

How can I animate shadow in surface shader?

I wrote wind shader that works but as you can see it have shadow problem! when I animating vertices shadow is fixed! ...
0
votes
0answers
29 views

Positional noise changes in Unity Editor vs compiled

I have a surface shader that adds a bit of positional noise, using the following code: ...