mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-26 01:31:13 +00:00
Merge pull request #508 from davidgyu/dxfix
Fixed HLSL shader compile error.
This commit is contained in:
commit
32e9bb7e29
@ -277,10 +277,10 @@ HS_CONSTANT_FUNC_OUT HSConstFunc(
|
||||
|
||||
float3 p[4];
|
||||
#if defined OSD_ENABLE_SCREENSPACE_TESSELLATION
|
||||
p[0] = mul(OsdModelViewMatrix() * float4(patch[0].position, 1)).xyz;
|
||||
p[1] = mul(OsdModelViewMatrix() * float4(patch[1].position, 1)).xyz;
|
||||
p[2] = mul(OsdModelViewMatrix() * float4(patch[2].position, 1)).xyz;
|
||||
p[3] = mul(OsdModelViewMatrix() * float4(patch[3].position, 1)).xyz;
|
||||
p[0] = mul(OsdModelViewMatrix(), float4(patch[0].position, 1)).xyz;
|
||||
p[1] = mul(OsdModelViewMatrix(), float4(patch[1].position, 1)).xyz;
|
||||
p[2] = mul(OsdModelViewMatrix(), float4(patch[2].position, 1)).xyz;
|
||||
p[3] = mul(OsdModelViewMatrix(), float4(patch[3].position, 1)).xyz;
|
||||
#else
|
||||
p[0] = patch[0].position.xyz;
|
||||
p[1] = patch[1].position.xyz;
|
||||
|
Loading…
Reference in New Issue
Block a user