SchemeExt:Material:set-transparency-type
From DocR21
Contents |
Action
Sets the type of a material's transparency component.
Filename
scm/scmext/rnd/trsp_scm.cpp
APIs
Syntax
(material:set-transparency-type material transparency-type)
Argument Types
| Argument | Scheme Data Type |
|---|---|
| material | material |
| transparency-type | string |
Returns
unspecified
Arguments
- material specifies the transparency material entity.
- transparency-type specifies the desired transparency material type. The available transparency types are: "base", "eroded", "None", "plain", "wrapped grid", and "wrapped image".
Example
; material:set-transparency-type ; Create a material. (define mat1 (material)) ;; mat1 ; Set the reflection shader type. (material:set-transparency-type mat1 "wrapped grid") ;; () ; Create a solid cylinder. (define cyl1 (solid:cylinder (position 0 0 0) (position 5 30 0) 8)) ;; cyl1 ; Assign the material to the cylinder. (entity:set-material cyl1 mat1) ;; () ; Set the appropriate render mode. (render:set-mode "full") ;; () ; Render and view the results. (render) ;; () ; OUTPUT Example

