class Celestine::Filter::SpecularLighting

Overview

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

Defined in:

Constant Summary

DISTANT_NODE_TAG = "feDistantLight"
POINT_NODE_TAG = "fePointLight"
SPOT_NODE_TAG = "feSpotLight"
TAG = "feSpecularLighting"

Instance Method Summary

Instance methods inherited from class Celestine::Filter::Basic

filter_basic_attribute(io) filter_basic_attribute, result : String? result, result=(result : String?) result=

Instance methods inherited from module Celestine::Modules::Animate

animate(&block : Proc(Celestine::Animate, Nil)) animate

Instance methods inherited from module Celestine::Modules::Body

body_attribute(io) body_attribute, height : IFNumber? height, height=(height : IFNumber?) height=, height_units : String? height_units, height_units=(height_units : String?) height_units=, width : IFNumber? width, width=(width : IFNumber?) width=, width_units : String? width_units, width_units=(width_units : String?) width_units=

Instance methods inherited from module Celestine::Modules::Position

position_attribute(io : IO) position_attribute, x : IFNumber? x, x=(x : IFNumber?) x=, x_units : String? x_units, x_units=(x_units : String?) x_units=, y : IFNumber? y, y=(y : IFNumber?) y=, y_units : String? y_units, y_units=(y_units : String?) y_units=

Instance methods inherited from class Celestine::Drawable

class_attribute(io : IO) class_attribute, classes : Array(String) classes, classes=(classes : Array(String)) classes=, custom_attribute(io : IO) custom_attribute, custom_attrs : Hash(String, String) custom_attrs, custom_attrs=(custom_attrs) custom_attrs=, draw(io : IO) : Nil draw, id : String? id, id=(id : String?) id=, id_attribute(io : IO) id_attribute, inner_elements : IO::Memory inner_elements, inner_elements=(inner_elements) inner_elements=, style : Hash(String, String) style, style=(style) style=, style_attribute(io : IO) style_attribute

Instance Method Detail

def add_distant_light(azimuth, elevation) #

TODO THESE CAN BE ANIMATABLE, NEED TO FIX LATER!!! MAKE LIKE MASK GROUP OR MARKER


def add_point_light(x, y, z) #

TODO THESE CAN BE ANIMATABLE, NEED TO FIX LATER!!! MAKE LIKE MASK GROUP OR MARKER


def 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) #

TODO THESE CAN BE ANIMATABLE, NEED TO FIX LATER!!! MAKE LIKE MASK GROUP OR MARKER


def constant : IFNumber? #

def constant=(constant : IFNumber?) #

def draw(io : IO) : Nil #

Draws this speculuar lighting filter to an IO


def exponent : IFNumber? #

def exponent=(exponent : IFNumber?) #

def input : String? #

The first input source


def input=(input : String?) #

The first input source


def lighting_color : String? #

The color of the lighting


def lighting_color=(lighting_color : String?) #

The color of the lighting


def surface_scale : IFNumber? #

The scale of the surface.


def surface_scale=(surface_scale : IFNumber?) #

The scale of the surface.