Difference between revisions of "Shading Technique - Fresnel"
(One intermediate revision by the same user not shown) | |||
Line 39: | Line 39: | ||
{ | { | ||
vec4 worldPosition = calcWorldPos( gl_Vertex ); | vec4 worldPosition = calcWorldPos( gl_Vertex ); | ||
− | vec3 ecPosition3 = worldPosition.xyz - viewer | + | vec3 ecPosition3 = worldPosition.xyz - viewer; |
vec3 i = normalize(ecPosition3); | vec3 i = normalize(ecPosition3); | ||
Line 62: | Line 62: | ||
{{CppSourceCode| | {{CppSourceCode| | ||
− | description= Fresnel - | + | description= Fresnel - Fragment Shader| |
code= | code= | ||
<source lang="cpp" line="1"> | <source lang="cpp" line="1"> |
Latest revision as of 20:26, 10 August 2008
|
|