Class: PFM::MapOverlay::PresetBase
- Defined in:
- docs/4_Systems_952_MapOverlay.rb
Overview
Base preset of the map overlay
Direct Known Subclasses
PresetFogOverlay, PresetGodRaysOverlay, PresetNausea, PresetRippleOverlay, PresetStaticImage, PresetWaterOverlay
Constant Summary collapse
- TMIN =
Minimum value of time in MapOverlay
0- TMAX =
Maximum value of time in MapOverlay
100- ALLOWED_BLEND_MODES =
List of allowed blend modes
%i[normal add subtract multiply overlay screen]
Instance Attribute Summary collapse
-
#blend_mode ⇒ Symbol
Get the blend mode.
-
#opacity ⇒ Float
Get the opacity.
-
#paused ⇒ Boolean
Access the paused attribute.
-
#resolution ⇒ Array<Integer>
readonly
Get the resolution.
Instance Method Summary collapse
-
#init_frag_values
Initialize fragment shader values.
Instance Attribute Details
#blend_mode ⇒ Symbol
Get the blend mode
35 36 37 |
# File 'docs/4_Systems_952_MapOverlay.rb', line 35 def blend_mode @blend_mode end |
#opacity ⇒ Float
Get the opacity
42 43 44 |
# File 'docs/4_Systems_952_MapOverlay.rb', line 42 def opacity @opacity end |
#paused ⇒ Boolean
Access the paused attribute
56 57 58 |
# File 'docs/4_Systems_952_MapOverlay.rb', line 56 def paused @paused end |
#resolution ⇒ Array<Integer> (readonly)
Get the resolution
53 54 55 |
# File 'docs/4_Systems_952_MapOverlay.rb', line 53 def resolution @resolution end |
Instance Method Details
#init_frag_values
Note:
Does nothing, to be overridden by subclasses if needed
Initialize fragment shader values
49 50 |
# File 'docs/4_Systems_952_MapOverlay.rb', line 49 def init_frag_values end |