add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
25
gamedata/shaders/r1/model_exohealth.ps.hlsl
Normal file
25
gamedata/shaders/r1/model_exohealth.ps.hlsl
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
struct v2p
|
||||
{
|
||||
float4 tc0: TEXCOORD0; // base
|
||||
float4 tc1: TEXCOORD1; // environment
|
||||
float4 c0: COLOR0; // sun.(fog*fog)
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
float4 main ( v2p I ) : COLOR
|
||||
{
|
||||
float4 t_base = tex2D (s_base,I.tc0);
|
||||
t_base.g += clamp(0.5-abs(m_actor_params.y-0.5), 0, 0.5)*t_base.a;
|
||||
t_base.r += (1-m_actor_params.y)*t_base.a;
|
||||
|
||||
//ïîëó÷àåì ïèêñåëü øóìà è ìàñøòàáèðóåì åãî â ñîîòâåòñòâèè ñ òåêóùèì óðîâíåì ïðîáëåì
|
||||
float4 t_noise = tex2D(s_lmap, I.tc0) * m_affects.x * 2;
|
||||
t_base.rgb += t_noise.rgb;
|
||||
|
||||
return float4 (t_base.r, t_base.g, t_base.b, 1);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue