Class: Parasol::FragmentShader

Inherits:
Shader
  • Object
show all
Defined in:
lib/parasol/fragment_shader.rb

Instance Attribute Summary

Attributes inherited from Shader

#source, #type

Instance Method Summary collapse

Methods inherited from Shader

#compiled?, #delete, #handle

Methods included from OpenGLContext

#require_opengl_context!

Constructor Details

#initialize(source:) ⇒ FragmentShader

Returns a new instance of FragmentShader.



5
6
7
# File 'lib/parasol/fragment_shader.rb', line 5

def initialize source:
  super source:, type: GL::FRAGMENT_SHADER
end