jme3tools.shader
Class ShaderDebug

java.lang.Object
  extended by jme3tools.shader.ShaderDebug

public class ShaderDebug
extends java.lang.Object

Static tool box class for convenient methods to help debug shaders


Constructor Summary
ShaderDebug()
           
 
Method Summary
static java.lang.String formatShaderSource(java.lang.String defines, java.lang.String source, java.lang.String version)
          Append the line numbers to the source code of a shader to output it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShaderDebug

public ShaderDebug()
Method Detail

formatShaderSource

public static java.lang.String formatShaderSource(java.lang.String defines,
                                                  java.lang.String source,
                                                  java.lang.String version)
Append the line numbers to the source code of a shader to output it

Parameters:
defines - the defines
source - the source
Returns:
the formated source code