add game&rawdata

This commit is contained in:
Vasily Petrov 2026-06-17 23:06:51 +03:00
parent 0133cd976c
commit 49b34b5546
45731 changed files with 709831 additions and 0 deletions

View file

@ -0,0 +1,33 @@
--local tex_base = "water\\water_studen"
--local tex_base = "water\\water_ryaska1"
--local tex_base = "water"
local tex_base = "water\\water_pool1"
--local tex_env = "watertestcube"
local tex_env = "sky\\sky_5_cube"
local tex_dist = "waterdistort"
local tex_dist2 = "waterdistort2"
function normal (shader, t_base, t_second, t_detail)
shader:begin ("water","water")
: sorting (2, true)
: blend (true,blend.srcalpha,blend.invsrcalpha)
: aref (true,0)
: zb (true,false)
: distort (true)
: fog (true)
shader:sampler ("s_base") :texture (tex_base)
shader:sampler ("s_env") :texture (tex_env) : clamp()
end
function l_special (shader, t_base, t_second, t_detail)
shader:begin ("waterd","waterd")
: sorting (2, true)
: blend (true,blend.srcalpha,blend.invsrcalpha)
: zb (true,false)
: fog (false)
: distort (true)
shader:sampler ("s_base") :texture (tex_base)
shader:sampler ("s_distort0") :texture (tex_dist)
shader:sampler ("s_distort1") :texture (tex_dist2)
end

View file

@ -0,0 +1,37 @@
#include "common.h"
struct vv
{
float4 pos : POSITION;
float2 tc0 : TEXCOORD0;
float2 tc1 : TEXCOORD1;
float4 c : COLOR0;
float4 f : COLOR1;
};
struct vf
{
float4 hpos : POSITION;
half2 tc0 : TEXCOORD0; // base0
half2 tc1 : TEXCOORD1; // base1
half2 tc2 : TEXCOORD2; // hemi0
half2 tc3 : TEXCOORD3; // hemi1
half4 c : COLOR0; // color
half4 f : COLOR1; // color
float fog : FOG;
};
vf main (vv v)
{
vf o;
o.hpos = mul (m_VP, v.pos); // xform, input in world coords
o.tc0 = v.tc0; // copy tc
o.tc1 = v.tc1; // copy tc
o.tc2 = v.tc0;
o.tc3 = v.tc1;
o.c = v.c;
o.f = v.f;
o.fog = calc_fogging (v.pos); // fog, input in world coords
return o;
}