Panda3D
Variables
direct.filter.filterCopy Namespace Reference

Variables

string COPY
 

Variable Documentation

◆ COPY

string COPY
Initial value:
1= """
2//Cg
3
4
5void vshader(float4 vtx_position : POSITION,
6 out float4 l_position : POSITION,
7 out float2 l_texcoord : TEXCOORD0,
8 uniform float4 texpad_src,
9 uniform float4x4 mat_modelproj)
10{
11 l_position=mul(mat_modelproj, vtx_position);
12 l_texcoord = (vtx_position.xz * texpad_src.xy) + texpad_src.xy;
13}
14
15void fshader(float2 l_texcoord : TEXCOORD0,
16 uniform sampler2D k_src : TEXUNIT0,
17 out float4 o_color : COLOR)
18{
19 o_color = tex2D(k_src, l_texcoord);
20}
21"""