Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(163)

Unified Diff: src/include/oslexec.h

Issue 186244: iscameraray and isshadowray (Closed) Base URL: http://openshadinglanguage.googlecode.com/svn/trunk/
Patch Set: raylevel and isshadowray Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/liboslcomp/typecheck.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/include/oslexec.h
===================================================================
--- src/include/oslexec.h (revision 539)
+++ src/include/oslexec.h (working copy)
@@ -189,7 +189,9 @@
class ShaderGlobals
{
public:
- ShaderGlobals () { }
+ ShaderGlobals ()
+ : iscameraray(true), isshadowray(false), flipHandedness(false)
+ { }
~ShaderGlobals () { }
VaryingRef<Vec3> P; ///< Position
@@ -215,8 +217,10 @@
VaryingRef<ClosureColor *> Ci; ///< Output colors
- bool flipHandedness; ///< flips the meaning of calculatenormal()
VaryingRef<float> surfacearea; ///< Total area of the object (not exposed)
+ bool iscameraray; ///< True if computing for camera ray
+ bool isshadowray; ///< True if computing for shadow opacity
+ bool flipHandedness; ///< flips the result of calculatenormal()
};
« no previous file with comments | « no previous file | src/liboslcomp/typecheck.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b