Proposed Shader Improvements: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
(→Issues) |
(→Issues) |
||
Line 15: | Line 15: | ||
For tages that describe values for ivars for vtkProperty: | For tages that describe values for ivars for vtkProperty: | ||
<Member name="DiffuseColor" value="0.85 0.05 0.15"> </ | <Member name="DiffuseColor" value="0.85 0.05 0.15"> </Member> | ||
would become | would become | ||
<Member ivar="DiffuseColor" value="0.85 0.05 0.15"> </ | <Member ivar="DiffuseColor" value="0.85 0.05 0.15"> </Member> |
Revision as of 18:31, 2 February 2006
Overview
This document is a place to collect all proposals for shader changes/improvements/issues.
Issues
- When material is unloaded, the state of the Property may not get restored --- vtkProperty should keep an internal state of the property before the material was loaded and restore to that state when the material is unloaded.
- The XML attribute names could be a little clearer, some suggestions:
-'ivar' refers to instance variables on vtk objects -'value' refers to numeric values or defined constants in the case of Cg transformation matrix settings. -'shader_var' refers to the name of particular hardware shader variables
For the tags PropertyUniform, CameraUniform, LightUniform the current construction: <PropertyUniform value="Ambient" name="property.Ambient"> </PropertyUniform> would become: <PropertyUniform ivar="Ambient" shader_var="property.Ambient"> </PropertyUniform>
For tages that describe values for ivars for vtkProperty: <Member name="DiffuseColor" value="0.85 0.05 0.15"> </Member> would become <Member ivar="DiffuseColor" value="0.85 0.05 0.15"> </Member>