class Prism::TerrainShader
 
  
  Overview
A generic shader for the terrain
Defined in:
prism/stdlib/shaders/terrain_shader.crConstant Summary
- 
        MAX_LIGHTS = 4
- 
        TRICKY: This must match the number of lights in your glsl code. 
Constructors
Instance Method Summary
- 
        #b_texture=(value : Prism::Texture2D)
        
          Sets the value of the "bTexture" uniform. 
- 
        #background_texture=(value : Prism::Texture2D)
        
          Sets the value of the "backgroundTexture" uniform. 
- 
        #blend_map=(value : Prism::Texture2D)
        
          Sets the value of the "blendMap" uniform. 
- 
        #g_texture=(value : Prism::Texture2D)
        
          Sets the value of the "gTexture" uniform. 
- 
        #lights=(value : StaticArray(Prism::PointLight, MAX_LIGHTS))
        
          Sets the value of the lights uniform. 
- 
        #projection_matrix=(value : Matrix4f)
        
          Sets the value of the projection_matrix uniform. 
- 
        #r_texture=(value : Prism::Texture2D)
        
          Sets the value of the "rTexture" uniform. 
- 
        #reflectivity=(value : Float32)
        
          Sets the value of the "reflectivity" uniform. 
- 
        #shine_damper=(value : Float32)
        
          Sets the value of the "shineDamper" uniform. 
- 
        #sky_color=(value : Vector3f)
        
          Sets the value of the sky_color uniform. 
- 
        #transformation_matrix=(value : Matrix4f)
        
          Sets the value of the transformation_matrix uniform. 
- 
        #view_matrix=(value : Matrix4f)
        
          Sets the value of the view_matrix uniform. 
Instance methods inherited from class Prism::Shader::Program
  
  
    
      finalize
    finalize, 
    
  
    
      set_uniform(name : String, value : Array(Shader::UniformStruct))set_uniform(name : String, value : Shader::UniformStruct)
set_uniform(name : String, value : LibGL::Int)
set_uniform(name : String, value : LibGL::Float)
set_uniform(name : String, value : Vector3f)
set_uniform(name : String, value : Vector2f)
set_uniform(name : String, value : Matrix4f)
set_uniform(name : String, value : Bool)
set_uniform(name : String, value : Prism::Texture) set_uniform, start start, stop stop
Constructor methods inherited from class Prism::Shader::Program
  
  
    
      new(file_name : String, &shader_reader : String -> String)
    new
    
  
    
  Class methods inherited from class Prism::Shader::Program
  
  
    
      pool
    pool
    
  
    
  Macros inherited from class Prism::Shader::Program
  
  
    
      uniform(name, type)
    uniform
    
  
  
    
    
    
    
  
    
    
    
    
  
Constructor Detail
Instance Method Detail
Sets the value of the "backgroundTexture" uniform.
Sets the value of the lights uniform.
Sets the value of the projection_matrix uniform.
Sets the value of the transformation_matrix uniform.