mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 05:29:57 +00:00
copy paste error when setting NormalScaleOffset/TexcoordScales
This commit is contained in:
parent
c1587a1f81
commit
5f35905fd8
@ -761,8 +761,8 @@ int spinnyCube(HWND window) {
|
||||
d3dDevice9->SetVertexShaderConstantF(4, (float*)World_Bottle.m, 4);
|
||||
}
|
||||
struct { float values[4]; } row;
|
||||
row = {2.0f, -1.0f, 0.0f, 0.0f}; d3dDevice9->SetVertexShaderConstantF(21, (float*)WorldViewProject_Bottle.m, 1); // NormalScaleOffset
|
||||
row = {1.0f, 0.0f, 0.0f, 0.0f}; d3dDevice9->SetVertexShaderConstantF(254, (float*)World_Bottle.m, 1); // TexcoordScales
|
||||
row = {2.0f, -1.0f, 0.0f, 0.0f}; d3dDevice9->SetVertexShaderConstantF(21, row.values, 1); // NormalScaleOffset
|
||||
row = {1.0f, 0.0f, 0.0f, 0.0f}; d3dDevice9->SetVertexShaderConstantF(254, row.values, 1); // TexcoordScales
|
||||
row = {1.0f, 0.0f, 0.0f, 0.0f}; d3dDevice9->SetPixelShaderConstantF( 1, row.values, 1); // opacity
|
||||
row = {1.0f, 0.0f, 0.0f, 0.0f}; d3dDevice9->SetPixelShaderConstantF( 39, row.values, 1); // some matrix
|
||||
row = {0.0f, 1.0f, 0.0f, 0.0f}; d3dDevice9->SetPixelShaderConstantF( 40, row.values, 1); // some matrix
|
||||
|
Loading…
Reference in New Issue
Block a user