If you replace:
Code: Select all
vertex_program_ref vs_Grass {
param_named_auto offset custom 1
}
Code: Select all
vertex_program_ref vs_Grass {
param_named_auto offset costime_0_x 10000.0
}
=> you loose a little control over the grass blades, but it could lead to a big performance increase (all the animation is done in the shader + no need to access the entities, so you can use static geometry).