Difference between revisions of "Shading Technique - Fresnel"
(New page: {| border="0" | {{ContentBlock|width=800|color=white |content={{!!}} == Overview == '''What is the Fresnel shader?''' This shader combine reflection and refraction that depends on the ...) |
|||
(2 intermediate revisions 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"> | ||
Line 87: | Line 87: | ||
== Example Result == | == Example Result == | ||
− | + | http://www.horde3d.org/forums/download/file.php?id=52 | |
== Pictures == | == Pictures == | ||
Line 94: | Line 94: | ||
== To-Do List for this Article == | == To-Do List for this Article == | ||
- Better explanation <br /> | - Better explanation <br /> | ||
− | |||
}} | }} |
Latest revision as of 20:26, 10 August 2008
|
|