Return to index
NAME
fullspace - set the current participating medium everywhere.
SYNOPSIS
fullspace
DESCRIPTION
In a scene only one fullspace must be defined.
EXAMPLE
phf cloudyPhF =
type Schlick2
k 0.3
l -0.4
r 0.5
# We're done, the current phf context is now "cloudyPhF"
# Create new named material for participating media context
mpm matPsicoCloud =
# Set a certain albedo
c
# Spectrum measured in 10 nm increments from 400 to 700 nm
cspec 400 700 35.29 44.87 47.25 47.03 46.87 47.00 47.09 \
47.15 46.80 46.17 46.26 48.74 51.08 51.31 51.10 \
51.11 50.52 50.36 51.72 53.61 53.95 52.08 49.49 \
48.30 48.75 49.99 51.35 52.75 54.44 56.34 58.00
albedo 0.97
# Set neutral color
c
# Set extinction coefficient
kt .04
# Modulate with a file of our own
ktgridfile myGridFileApart
# set this medium everywhere in the space
fullspace
SEE ALSO
mpm