Panda3D

Loading...
Searching...
No Matches
Variables
direct.filter.filterCopy Namespace Reference

## Variables
str | COPY

## Variable Documentation

## ◆ COPY

str COPY

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