Beispiel #1
0
 /**
  * Prepare the shading state for shader invocation. This also runs the
  * currently attached surface modifier.
  *
  * @param state shading state to be prepared
  */
 public void prepareShadingState(ShadingState state)
 {
     geometry.prepareShadingState(state);
     if (state.getNormal() != null && state.getGeoNormal() != null)
     {
         state.correctShadingNormal();
     }
     // run modifier if it was provided
     if (state.getModifier() != null)
     {
         state.getModifier().modify(state);
     }
 }