forked from 0ad/0ad
Ykkrosh
8fee3d8ef8
Add textured line overlay rendering. Change terrain height calculations to be triangulation-dependent for improved accuracy. Add triangulation-dependent terrain normal function. Support separate S/T wrap modes for textures. Rename CVector2D_Maths since it no longer conflicts with simulation CVector2D. Coalesce freed chunks in vertex buffers, to avoid excessive fragmentation. Add some things to help debug vertex buffer allocation a little. This was SVN commit r9929.
16 lines
472 B
Plaintext
16 lines
472 B
Plaintext
!!ARBvp1.0
|
|
PARAM losTransform = program.local[0];
|
|
ATTRIB position = vertex.position;
|
|
|
|
DP4 result.position.x, state.matrix.mvp.row[0], position;
|
|
DP4 result.position.y, state.matrix.mvp.row[1], position;
|
|
DP4 result.position.z, state.matrix.mvp.row[2], position;
|
|
DP4 result.position.w, state.matrix.mvp.row[3], position;
|
|
|
|
MOV result.texcoord[0], vertex.texcoord[0];
|
|
MAD result.texcoord[1], position.xzzz, losTransform.x, losTransform.y;
|
|
|
|
MOV result.color, vertex.color;
|
|
|
|
END
|