Thread: Fish
View Single Post
Old 06-05-12, 10:39 AM   #54
Pintea
Sparky
 
Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by BIGREG View Post
No the plants are animated with .sim
and there are animated with ... lost controllers in goblin and s3d
Nope, they're shader-animated. Check out Shaders/Granny/GrannyVS.fx:
#ifdef GRASS_ANIMATION
float frequency = max(0, min(1, Input.Position.y)) * g_animationTime.y;
Input.Position.xyz += float3(g_animationTime.x, 0.0, g_animationTime.x) * sin(frequency);
#endif

However only the plants are animated and the gr2 contains both rocks and plants. I think it's a name convention, the plants have a certain name that differentiates them from the rocks, so the rocks are not rendered with this shader.
Pintea is offline   Reply With Quote