EyeRefract: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 6: Line 6:
----
----
'''Description'''  
'''Description'''  
EyeRefract is the latest eye shader by Valve.
EyeRefract is the latest eye shader by Valve.  
There are many other parameters however I have yet to figure out their functions.
 
{{todo|Add pictures and more info}}
 




Line 15: Line 19:
"EyeRefract"
"EyeRefract"
{
{
"$Iris"              "models/cra0kalo/ct_gign/eye-iris-brown"   // Iris color in RGB with cornea noise in A
"$Iris"              "models/cra0kalo/ct_gign/eye-iris-brown"     // Iris color in RGB with cornea noise in A
"$AmbientOcclTexture" "models/cra0kalo/ct_gign/eyeball_l_ambient"   // Ambient occlusion in RGB, A unused
"$AmbientOcclTexture" "models/cra0kalo/ct_gign/eyeball_l_ambient"     // Ambient occlusion in RGB, A unused
"$Envmap"            "models/cra0kalo/ct_gign/eye-reflection-cubemap-"    // Reflection environment map
"$Envmap"            "models/cra0kalo/ct_gign/eye-reflection-cubemap-"    // Reflection environment map
"$CorneaTexture"      "models/cra0kalo/ct_gign/eye-cornea"                // Special texture that has 2D cornea normal in RG and other data in BA
"$CorneaTexture"      "models/cra0kalo/ct_gign/eye-cornea"                // Special texture that has 2D cornea normal in RG and other data in BA


"$EyeballRadius" "0.5" // Default 0.5
"$EyeballRadius" "0.5"   // Default 0.5
"$AmbientOcclColor" "[0.36 0.25 0.2]" // Default 0.33, 0.33, 0.33
"$AmbientOcclColor" "[0.36 0.25 0.2]" // Default 0.33, 0.33, 0.33
"$Dilation" "0.5" // Default 0.5
"$Dilation" "0.5"     // Default 0.5
"$ParallaxStrength" "0.25"          // Default 0.25
"$ParallaxStrength" "0.25"          // Default 0.25
"$CorneaBumpStrength" "1.25" // Default 1.0
"$CorneaBumpStrength" "1.25"   // Default 1.0


"$halflambert" "1"
"$halflambert" "1"
"$nodecal" "1"
"$nodecal" "1"


// These effects are only available in ps.2.0b and later
// These effects are only available in ps.2.0b and later
"$RaytraceSphere" "0" // Default 1 - Enables raytracing in the pixel shader to make the eyeball look round
"$RaytraceSphere" "0"   // Default 1 - Enables raytracing in the pixel shader to make the eyeball look round
"$SphereTexkillCombo" "0" // Default 1 - Enables killing pixels that don't ray-intersect the sphere
"$SphereTexkillCombo" "0"   // Default 1 - Enables killing pixels that don't ray-intersect the sphere





Revision as of 06:08, 6 July 2012

Stub

This article or section is a stub. You can help by expanding it.

EyeRefract


Description EyeRefract is the latest eye shader by Valve. There are many other parameters however I have yet to figure out their functions.

Todo: Add pictures and more info



Example Code

"EyeRefract"
{
 "$Iris"               "models/cra0kalo/ct_gign/eye-iris-brown"      // Iris color in RGB with cornea noise in A
 "$AmbientOcclTexture" "models/cra0kalo/ct_gign/eyeball_l_ambient"      // Ambient occlusion in RGB, A unused
 "$Envmap"             "models/cra0kalo/ct_gign/eye-reflection-cubemap-"    // Reflection environment map
 "$CorneaTexture"      "models/cra0kalo/ct_gign/eye-cornea"                 // Special texture that has 2D cornea normal in RG and other data in BA

 "$EyeballRadius" "0.5"    // Default 0.5
 "$AmbientOcclColor" "[0.36 0.25 0.2]" // Default 0.33, 0.33, 0.33
 "$Dilation" "0.5"     // Default 0.5
 "$ParallaxStrength" "0.25"          // Default 0.25
 "$CorneaBumpStrength" "1.25"   // Default 1.0

 "$halflambert" "1"
 "$nodecal" "1"

 // These effects are only available in ps.2.0b and later
 "$RaytraceSphere" "0"    // Default 1 - Enables raytracing in the pixel shader to make the eyeball look round
 "$SphereTexkillCombo" "0"   // Default 1 - Enables killing pixels that don't ray-intersect the sphere


}