Skip to content

Commit bf0e4e7

Browse files
committed
renamed some things
Former-commit-id: 58afddd
1 parent e65ddc0 commit bf0e4e7

7 files changed

Lines changed: 10 additions & 32 deletions

File tree

src/prism/common/light/ambient_light.cr

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module Prism::Common::Light
22
# Represents an ambient light source.
3+
# This is a special type of light that provides a minimum amount of light to the entire scene.
4+
# For now you always need to have an ambient light otherwise no other light sources will work.
5+
# That may be a bug that get's fixed later on.
36
class AmbientLight < Core::AmbientLight
47
SHADER_PATH = File.join(File.dirname(PROGRAM_NAME), "/res/shaders/", "forward-ambient")
58
include Core::Shader::Serializable

src/prism/common/light/base_light.cr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Prism::Common::Light
22
# A pseudo light object that provides some of the basic light properties.
3+
# This light source is at a location within the scene.
34
class BaseLight
45
include Core::Shader::Serializable
56

src/prism/common/light/light.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
require "./**"
22

3+
# These are a curated set of lights that can be included in your scene.
4+
# Lights extend the `Core::GameComponent`.
35
module Prism::Common::Light
46
end

src/prism/common/node/builder.cr

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "./shape"
22

33
module Prism::Common::Node
4-
class Box < Shape
4+
class Cube < Shape
55
def initialize(@size : Float32)
66
initialize(@size, {
77
bottom_left: Vector2f.new(0, 0),

src/prism/common/node/node.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
require "../**"
22

3+
# Nodes are a curated set of pre-build `Core::GameObject`s.
4+
# These are like building blocks you can use to create your scene.
35
module Prism::Common::Node
46
end

src/prism/common/node/plain.cr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module Prism::Common::Node
2+
# A rectangular plane
23
class Plain < Shape
34
def initialize(@width : Float32, @depth : Float32)
45
initialize(@width, @depth, {

0 commit comments

Comments
 (0)