User Guide

428 Chapter 12: Methods
Parameters
newShaderName
Required. Specifies the name of the new shader. The name of the new shader
must be unique in the shader list.
shaderType Required. A symbol that determines the style in which the shader is applied. Valid
values include the following:
#standard shaders are photorealistic, and have the following properties: ambient, blend,
blendConstant, blendConstantList, blendFunction, blendFunctionList, blendSource,
blendSourceList, diffuse, diffuseLightMap, emissive, flat, glossMap, ilk, name,
region, renderStyle, silhouettes, specular, specularLightMap, texture,
textureMode, textureModeList, textureRepeat, textureRepeatList,
textureTransform, textureTransformList, transparent, useDiffuseWithTexture,
wrapTransform, and wrapTransformList.
#painter shaders are smoothed out, have the appearance of a painting, and have the following
properties in addition to all of the
#standard properties: colorSteps, hilightPercentage,
hilightStrength, name, shadowPercentage, shadowStrength, and style.
#engraver shaders are lined, have the appearance of an engraving, and have the following
properties in addition to all of the #standard properties:
brightness, density, name,
and
rotation.
#newsprint shaders are in a simulated dot style, have the appearance of a newspaper
reproduction, and have the following properties in addition to all of the #standard properties:
brightness, density, and name.
Example
This statement creates a #painter shader called newPainter:
newPainter = member("3D World").newShader("newPainter",#painter)
See also
shadowPercentage
newTexture
Usage
member(whichCastmember).newTexture(newTextureName \
{,#typeIndicator, sourceObjectReference})
Description
3D command; creates a new texture within the referenced member’s texture palette and returns a
reference to the new texture. The only way cast member textures will work is if you specify the
cast member in the
newTexture constructor.
Parameters
newTextureName Required. Specifies the name of the new texture. The name of the new texture
must be unique in the referenced cast member’s texture palette.