Skip to content

Instantly share code, notes, and snippets.

@CookiePLMonster
Created June 22, 2018 12:51
Show Gist options
  • Save CookiePLMonster/f234e14d9cfff016c2ba420ad67c79a1 to your computer and use it in GitHub Desktop.
Save CookiePLMonster/f234e14d9cfff016c2ba420ad67c79a1 to your computer and use it in GitHub Desktop.
CRC2005 skinning shader
//
// Generated by Microsoft (R) D3DX9 Fragment Linker 5.04.00.2904
//
// Parameters:
//
// float4x3 BoneWorldViewT[70];
// float4 FogParams;
// float3 LightAmbientDown;
// float3 LightAmbientUp;
// float3 LightDiffuse;
// float3 LightDirection;
// float3 LightUp;
// float3 MaterialDiffuse;
// float3 MaterialEmissive;
// float4x4 Projection;
// float4 Tex1Transform;
//
//
// Registers:
//
// Name Reg Size
// ---------------- ----- ----
// Projection c0 4
// FogParams c7 1
// LightDirection c8 1
// LightUp c9 1
// LightDiffuse c10 1
// LightAmbientDown c11 1
// LightAmbientUp c12 1
// MaterialDiffuse c14 1
// MaterialEmissive c15 1
// Tex1Transform c17 1
// BoneWorldViewT c31 210
//
vs_1_1
dcl_position v0
dcl_normal v1
dcl_blendindices v2
dcl_texcoord v3
def c241, 0.5, 0, 0, 0
def c242, 256.005005, 3, 1, 0
def c243, 1, 0, 0, 0
mul r0.w, v2.z, c242.x
expp r0.y, r0.w
mov r0.w, r0.y
mad r0.w, v2.z, c242.x, -r0.w
mul r0.w, r0.w, c242.y
mov a0.x, r0.w
dp3 r0.x, c31[a0.x], v1
mov r1.xyz, c31[a0.x]
mul r2.xyz, r1.zxyw, c32[a0.x].yzxw
dp3 r0.y, c32[a0.x], v1
mad r1.xyz, r1.yzxw, c32[a0.x].zxyw, -r2
dp3 r0.z, r1, v1
mov r1.w, c33[a0.x].w
dp4 r1.z, r1, v0
dp4 r1.x, c31[a0.x], v0
dp4 r1.y, c32[a0.x], v0
mov r1.w, c242.z
dp4 oPos.x, r1, c0
dp4 oPos.y, r1, c1
dp4 oPos.z, r1, c2
dp4 oPos.w, r1, c3
mad oFog, r1.z, c7.x, c7.y
mov r2.xy, c33[a0.x]
mad oT0.xy, c17.xzzw, v3, c17.ywzw
mov oD0, c243.x
dp3 r3.x, r0, c9
mul r1.xyz, r2.x, c11
mad r1.w, r3.x, c241.x, c241.x
mad r1.xyz, r1, -r1.w, c11
mad r1.xyz, r1.w, c12, r1
dp3 r0.x, r0, c8
max r0.w, -r0.x, c241.y
mul r0.xyz, r2.x, c10
mad r1.xyz, r0, r0.w, r1
mov r0.xyz, c14
mad oD0.xyz, r0, r1, c15
// approximately 36 instruction slots used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment