Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.shaders.ct
Class Ambient

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.Shader
        |
        +--org.bouncycastle.graphics.rt.shaders.CookTorranceShader
              |
              +--org.bouncycastle.graphics.rt.shaders.ct.Ambient

public class Ambient
extends CookTorranceShader

An ambient only surface shader.

Example:

      <Ambient ambient="0.9"/>
 

Document Type Definition:

     <!ENTITY %Float    "CDATA">
     <!ENTITY %Color3f  "CDATA">

     <!ELEMENT Ambient EMPTY>
     <!ATTLIST Ambient
         ambient           (%Color3f; | %Float;) "0, 0, 0">
 


Fields inherited from class org.bouncycastle.graphics.rt.shaders.CookTorranceShader
ambient
 
Fields inherited from class org.bouncycastle.graphics.rt.Shader
alpha, trans, world
 
Constructor Summary
Ambient(World world)
           
 
Method Summary
static Shader getInstance(World world, RMLReader in)
           
 void shade(Hit hit, Pixel p)
          the shade routine.
 
Methods inherited from class org.bouncycastle.graphics.rt.shaders.CookTorranceShader
ambientContribution, diffuseContribution, processParameters, setAmbient, setAmbient, specularContribution
 
Methods inherited from class org.bouncycastle.graphics.rt.Shader
clamp, processObject, readObject, setAlpha, toShaderSpace, toShaderSpace, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ambient

public Ambient(World world)
Method Detail

getInstance

public static Shader getInstance(World world,
                                 RMLReader in)
                          throws java.io.IOException

shade

public void shade(Hit hit,
                  Pixel p)
Description copied from class: CookTorranceShader
the shade routine.
Overrides:
shade in class CookTorranceShader

Bouncy Castle Rendering Toolkit 1.0