Skip to main content

Questions tagged [surface-shader]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

Convert legacy OpenGL script to a newer one

I have a script drawing 3D chart, three axes and a surface. Unfortunately, it was implemented using old OpenGL approach with Begin and ...
Anonymous's user avatar
  • 111
0 votes
1 answer

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. ...
tigrou's user avatar
  • 3,214
0 votes
1 answer

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 ...
S. M.'s user avatar
  • 117
0 votes
1 answer

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. ...
AzulShiva's user avatar
  • 669
-1 votes
1 answer

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 ...
alaokastrail's user avatar
1 vote
1 answer

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! ...
Seyed Morteza Kamali's user avatar
0 votes
0 answers

Positional noise changes in Unity Editor vs compiled

I have a surface shader that adds a bit of positional noise, using the following code: ...
PearsonArtPhoto's user avatar