#!F-adobe-helvetica-medium-r-normal--18* #!N #!N #!Rlight Light #!N #!N Category #!N #!N #!Lcatren,dxall760 h Rendering #!EL #!N #!N Function #!N #!N Creates a distant light source. #!N #!N Syntax #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N #!F-adobe-times-bold-r-normal--18* light #!EF = Light( #!F-adobe-times-bold-r-normal--18* where, color, camera #!EF ); #!EF #!N #!N #!EC #!N #!N Inputs #!T,1,91,276,461,646 #!F-adobe-times-medium-r-normal--14* #!F-adobe-times-bold-r-normal--18* #!N TAB Name TAB Type TAB Default TAB Description #!EF #!N TAB where TAB vector or camera TAB [0 0 1] TAB position or direction of light #!N TAB color TAB vector or string TAB [1 1 1] TAB color and intensity of light #!N TAB camera TAB flag TAB 0 TAB 0: fixed direction #!N TAB - TAB - TAB - TAB 1: direction relative to camera #!N TAB - TAB - TAB - TAB #!EF #!N #!N Outputs #!T,1,161,321,646 #!F-adobe-times-medium-r-normal--14* #!F-adobe-times-bold-r-normal--18* #!N TAB Name TAB Type TAB Description #!EF #!N TAB light TAB light TAB a distant light #!N TAB - TAB - TAB #!EF #!N #!N Functional Details #!N #!N #!I0 #!N #!N #!I0 #!N #!F-adobe-times-bold-r-normal--18* #!F-adobe-times-bold-r-normal--18* where #!EF #!EF #!I50 #!N specifies the direction to the light source. If this parameter is specified as a camera rather than as a vector, the module positions the light source behind the camera and to its left (this is also the default light supplied by Data Explorer). #!N #!I0 #!N #!F-adobe-times-bold-r-normal--18* #!F-adobe-times-bold-r-normal--18* color #!EF #!EF #!I50 #!N specifies the color and intensity of the light either as an RGB vector or as a color-name string. The color name must be one of the defined color-name strings (see #!Lcolor,dxall792 h Color #!EL ). #!N #!I0 #!N #!F-adobe-times-bold-r-normal--18* #!F-adobe-times-bold-r-normal--18* camera #!EF #!EF #!I50 #!N specifies that #!F-adobe-times-bold-r-normal--18* where #!EF is to be interpreted relative to the camera coordinate system rather than the world coordinate system. #!N #!N If #!F-adobe-times-bold-r-normal--18* where #!EF is a camera, then the specification #!F-adobe-times-bold-r-normal--18* camera #!EF = 0 is an error. #!I0 #!N #!N #!N #!N Use the Collect module to incorporate the output light in the scene given to the Render, Display, or Image. #!N #!N If no light is present in the object passed to the Render, Display, or Image tool, a distant light of color [1 1 1] (behind and 45 degrees to the left of the viewer) is automatically incorporated in the scene. A small amount of ambient light is also used. Data Explorer removes these default lights if any light has been specified. The effect of the system's default lights by combining an ambient light (generated by using the default settings of AmbientLight) with the distant light generated by the Light module when a camera is specified for the #!F-adobe-times-bold-r-normal--18* where #!EF parameter. #!N #!N Lights have no effect on volume-rendered objects. #!N #!N Example Visual Programs #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N ThunderGlyphSheet.net #!N UsingLight.net #!EF #!N #!N #!EC #!N #!N See Also #!N #!N #!Lambligh,dxall766 h AmbientLight #!EL , #!Lcollect,dxall788 h Collect #!EL , #!Lcolor,dxall792 h Color #!EL , #!Lconvert,dxall799 h Convert #!EL #!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N #!N #!Llist,dxall885 h List #!EL #!N #!F-adobe-times-medium-i-normal--18* #!N
Generated by dwww version 1.15 on Sat Jun 22 12:48:42 CEST 2024.