Class: Rendering::DepthDebugEffect

Inherits:
Object
  • Object
show all
Includes:
SinglePassEffect
Defined in:
lib/engine/rendering/post_processing/depth_debug_effect.rb

Instance Attribute Summary

Attributes included from SinglePassEffect

#material

Attributes included from Effect

#enabled

Instance Method Summary collapse

Methods included from SinglePassEffect

#apply

Constructor Details

#initializeDepthDebugEffect

Returns a new instance of DepthDebugEffect.



7
8
9
10
11
12
13
14
15
# File 'lib/engine/rendering/post_processing/depth_debug_effect.rb', line 7

def initialize
  @material = Engine::Material.create(
    shader: Engine::Shader.for(
      'fullscreen_vertex.glsl',
      'post_process/depth_debug_frag.glsl',
      source: :engine
    )
  )
end