Skip to content

class Celestine::Filter::SpecularLighting
inherits Celestine::Filter::Basic #

Shades an object using specular lighting using the alpha channel as a bump map.

Constants#

DISTANT_NODE_TAG = "feDistantLight" #

POINT_NODE_TAG = "fePointLight" #

SPOT_NODE_TAG = "feSpotLight" #

TAG = "feSpecularLighting" #

Methods#

#add_distant_light(azimuth, elevation) #

View source

#add_point_light(x, y, z) #

View source

#add_spot_light(x = nil, y = nil, z = nil, points_at_x = nil, points_at_y = nil, points_at_z = nil, specular_exponent = nil, limiting_cone_angle = nil) #

View source

#constant : IFNumber? #

View source

#constant=(constant : IFNumber?) #

View source

#draw(io : IO) : Nil #

Draws this speculuar lighting filter to an IO

View source

#exponent : IFNumber? #

View source

#exponent=(exponent : IFNumber?) #

View source

#input : String? #

The first input source

View source

#input=(input : String?) #

The first input source

View source

#lighting_color : String? #

The color of the lighting

View source

#lighting_color=(lighting_color : String?) #

The color of the lighting

View source

#surface_scale : IFNumber? #

The scale of the surface.

View source

#surface_scale=(surface_scale : IFNumber?) #

The scale of the surface.

View source

module Celestine::Filter::SpecularLighting::Attrs #

Shades an object using specular lighting using the alpha channel as a bump map.