mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Apply texture matrix 0 in the object shader
This commit is contained in:
parent
59f1d4b047
commit
e50b6b1cfe
1 changed files with 3 additions and 1 deletions
|
@ -36,6 +36,8 @@
|
||||||
SH_BEGIN_PROGRAM
|
SH_BEGIN_PROGRAM
|
||||||
shUniform(float4x4, wvp) @shAutoConstant(wvp, worldviewproj_matrix)
|
shUniform(float4x4, wvp) @shAutoConstant(wvp, worldviewproj_matrix)
|
||||||
|
|
||||||
|
shUniform(float4x4, textureMatrix0) @shAutoConstant(textureMatrix0, texture_matrix, 0)
|
||||||
|
|
||||||
#if (VIEWPROJ_FIX) || (SHADOWS)
|
#if (VIEWPROJ_FIX) || (SHADOWS)
|
||||||
shUniform(float4x4, worldMatrix) @shAutoConstant(worldMatrix, world_matrix)
|
shUniform(float4x4, worldMatrix) @shAutoConstant(worldMatrix, world_matrix)
|
||||||
#endif
|
#endif
|
||||||
|
@ -118,7 +120,7 @@
|
||||||
{
|
{
|
||||||
shOutputPosition = shMatrixMult(wvp, shInputPosition);
|
shOutputPosition = shMatrixMult(wvp, shInputPosition);
|
||||||
|
|
||||||
UV.xy = uv0;
|
UV.xy = shMatrixMult (textureMatrix0, float4(uv0,0,1)).xy;
|
||||||
#if SECOND_UV_SET
|
#if SECOND_UV_SET
|
||||||
UV.zw = uv1;
|
UV.zw = uv1;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue