-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from Circular-Studios/develop
Version 0.2.5
- Loading branch information
Showing
31 changed files
with
885 additions
and
1,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
module components.lights; | ||
import core.properties; | ||
import components.component; | ||
import graphics.shaders; | ||
|
||
import gl3n.linalg; | ||
|
||
class Light : Component | ||
{ | ||
public: | ||
mixin Property!( "vec3", "color", "public" ); | ||
|
||
this( vec3 color ) | ||
{ | ||
super( null ); | ||
|
||
this.color = color; | ||
} | ||
|
||
override void update() | ||
{ | ||
|
||
} | ||
|
||
override void shutdown() | ||
{ | ||
|
||
} | ||
|
||
} | ||
|
||
class AmbientLight : Light | ||
{ | ||
this( vec3 color ) | ||
{ | ||
super( color ); | ||
} | ||
} | ||
|
||
class DirectionalLight : Light | ||
{ | ||
public: | ||
mixin Property!( "vec3", "direction" ); | ||
|
||
this( vec3 color, vec3 direction ) | ||
{ | ||
this.direction = direction; | ||
super( color ); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.