S
S
Stanislav Silin2014-11-24 16:42:53
Unity
Stanislav Silin, 2014-11-24 16:42:53

How to set up tessellation in GLSL shader?

I made a GLSL shader for a material with a height map. There was a need to add tessellation, since there is not enough vertex mesh in the vicinity, and I don’t want to generate a model of higher quality, and so on, you even need to reduce it. Distance changes will be quite frequent, so I think tessellation is justified here.
In Unity3D/GLSL shader code is framed by #ifdef ... #endif, tried something like:

#ifdef TESSELLATION

#endif

Zero reaction.
PS For the time being I'll be kosing in HLSL, but I'd like to take a look at GLSL as well.
PSS After surfing the Internet, I got the impression that you can only write vertex and fragment shaders.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2014-11-24
@byme

Tessellation appeared in OpenGL 4, but as far as I understand, Unity does not support it in the current version. There is a chance they will add it to Unity 5.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question