Skip to content

Instantly share code, notes, and snippets.

@CookiePLMonster
Created June 22, 2018 13:11
Show Gist options
  • Save CookiePLMonster/3b8ff649f2a25985cee915ee814200cc to your computer and use it in GitHub Desktop.
Save CookiePLMonster/3b8ff649f2a25985cee915ee814200cc to your computer and use it in GitHub Desktop.
//
// 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 r1.x, c31[a0.x], v1
dp3 r1.y, c32[a0.x], v1
dp4 r0.x, c31[a0.x], v0
dp4 r0.y, c32[a0.x], v0
dp4 r0.z, c33[a0.x], v0
mov r0.w, c242.z
dp3 r1.z, c33[a0.x], v1
dp4 oPos.x, r0, c0
dp4 oPos.y, r0, c1
dp4 oPos.z, r0, c2
dp4 oPos.w, r0, c3
mad oFog, r0.z, c7.x, c7.y
mad oT0.xy, c17.xzzw, v3, c17.ywzw
mov oD0, c243.x
dp3 r0.x, r1, c9
mad r0.w, r0.x, c241.x, c241.x
mad r0.xyz, c11, -r0.w, c11
dp3 r1.x, r1, c8
mad r0.xyz, r0.w, c12, r0
max r0.w, -r1.x, c241.y
mad r1.xyz, c10, r0.w, r0
mov r0.xyz, c14
mad oD0.xyz, r0, r1, c15
// approximately 29 instruction slots used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment