Update of /cvsroot/playerstage/code/gazebo/Media/materials/programs
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14516/Media/materials/programs
Added Files:
Tag: ogre
Grass.cg hdr.cg
Log Message:
Added new files
--- NEW FILE: Grass.cg ---
// Vertex program to wave some grass about
// Simplistic, assumes base of the grass at 0
void grass_vp(float4 position : POSITION,
float3 normal : NORMAL,
float2 uv : TEXCOORD0,
out float4 oPosition : POSITION,
out float2 oUv : TEXCOORD0,
out float4 colour : COLOR,
uniform float4x4 worldViewProj,
uniform float4 ambient,
uniform float4 objSpaceLight,
uniform float4 lightColour,
uniform float4 offset)
{
float4 mypos = position;
//offset = float4(0.5, 0, 0, 0);
mypos = mypos + offset * mypos.yyyy;
oPosition = mul(worldViewProj, mypos);
oUv = uv;
// get vertex light direction (support directional and point)
float3 light = normalize(
objSpaceLight.xyz - (position.xyz * objSpaceLight.w));
float diffuseFactor = max(dot(normal, light), 0);
colour = ambient + diffuseFactor * lightColour;
}
--- NEW FILE: hdr.cg ---
void morningskybox_fp (
float2 uv : TEXCOORD0,
out float4 colour : COLOR,
uniform sampler2D tex : register(s0) )
{
colour = tex2D(tex, uv);
// blow out the light a bit
colour *= 1.7;
}
void morningcubemap_fp (
float3 uv : TEXCOORD0,
out float4 colour : COLOR,
uniform samplerCUBE tex : register(s0) )
{
colour = texCUBE(tex, uv);
// blow out the light a bit
colour *= 1.7;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit