User Tools

Site Tools


pastebin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pastebin [2007/05/15 17:14]
cabalistic angelegt
pastebin [2015/08/23 13:59] (current)
Line 1: Line 1:
-====== Pastebin ====== +{{shadows_sectormania.png|}}
- +
-===== Shader ===== +
- +
-<code c> +
-void main +
-+
-  float2 iTexCoord0 : TEXCOORD0, +
-  +
-  out float4 oColor : COLOR, +
- +
-  uniform float splatScaleX, +
-  uniform float splatScaleZ, +
-  uniform sampler2D covMap, +
-  uniform sampler2D splat1, +
-  uniform sampler2D splat2, +
-  uniform sampler2D splat3 +
-)  +
-{ +
-  float3 cov = tex2D(covMap, iTexCoord0).rgb; +
-  iTexCoord0.x *= splatScaleX; +
-  iTexCoord0.y *= splatScaleZ; +
-  oColor = tex2D(splat1, iTexCoord0) * cov.x +
-          + tex2D(splat2, iTexCoord0) * cov.y +
-          + tex2D(splat3, iTexCoord0) * cov.z; +
-} +
-</code>+
pastebin.1179242060.txt.gz · Last modified: 2015/08/23 14:03 (external edit)