add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
37
gamedata/shaders/r1/detail_still.vs
Normal file
37
gamedata/shaders/r1/detail_still.vs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#include "common.h"
|
||||
|
||||
struct vf
|
||||
{
|
||||
float4 hpos : POSITION;
|
||||
float4 C : COLOR0;
|
||||
float2 tc : TEXCOORD0;
|
||||
};
|
||||
|
||||
uniform float4 consts; // {1/quant,1/quant,diffusescale,ambient}
|
||||
uniform float4 array [200] : register(c10);
|
||||
|
||||
vf main (v_detail v)
|
||||
{
|
||||
vf o;
|
||||
|
||||
// index
|
||||
int i = v.misc.w;
|
||||
float4 m0 = array[i+0];
|
||||
float4 m1 = array[i+1];
|
||||
float4 m2 = array[i+2];
|
||||
float4 c0 = array[i+3];
|
||||
|
||||
// Transform to world coords
|
||||
float4 pos;
|
||||
pos.x = dot (m0, v.pos);
|
||||
pos.y = dot (m1, v.pos);
|
||||
pos.z = dot (m2, v.pos);
|
||||
pos.w = 1;
|
||||
|
||||
// Final out
|
||||
o.hpos = mul (m_WVP,pos);
|
||||
o.C = c0;
|
||||
o.tc.xy = (v.misc * consts).xy;
|
||||
|
||||
return o;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue