- Home /
Animating Heightmaps in Tessellation Shaders?
Im fairly new to the language of shaders in general. Does anybody have any tips for animating heightmaps within a tesselation shader? Perhaps fading between two / three different maps, or procedural generation and changes in the maps over time? It seems the offsets and tiling properties don't even apply to the heightmap channel in the default tess shader. What is the reason for this? Is it easily accessible, or is there something deeper preventing this kind of malleability.
thanks!
Answer by pinkhair · Aug 17, 2013 at 01:45 AM
As for the offset/tiling issue, that is a mistake in the code for the default tessellation shader and not any actual technical limitation.
Even with the default shader, you can use a dynamically generated texture- here I just slapped a render texture off a camera onto a box with the default shader and it worked fine: http://www.youtube.com/watch?v=iX9dJMZmYps
Oh awesome! Yeah I thought it was odd that the offset wasn't accessible. I can foresee some interesting experiments re: your render texture example. Thanks for giving it a whirl
Hi @pinkhair I know this is old but I dont know how to implement your answer? I cam across your youtube video above and this is exactly what I want to do. Can you please post the code for this? or explain in more detail how you did it? I managed to map a camera texture onto the tessellation shader, it shows the camera but nothing happens, no change in geometry of the cube? (sorry I am new to this) Thanks!!!
Ahh figured it out Just was using the wrong shader - switched to bumped spec and works perfectly.
Your answer
Follow this Question
Related Questions
Layered Texture not working properly 0 Answers
Basic gradient vert shader weirdness with 2+ objects 1 Answer
Fresnel shader and mixed textures 0 Answers
Shader errors in Windows build ( renders black ) but not in Editor 2 Answers
Particular PBR Maps 1 Answer