Skip to content

Commit

Permalink
brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Dec 18, 2012
1 parent 1b90a94 commit 50ad31b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/dye/sprite.ooc
Expand Up @@ -80,6 +80,8 @@ GlSprite: class extends GlDrawable {

xSwap := false

brightness := 1.0

init: func (path: String) {
texture = TextureLoader load(path)
size = vec2(texture width, texture height)
Expand All @@ -101,7 +103,7 @@ GlSprite: class extends GlDrawable {
}

draw: func (dye: DyeContext) {
glColor3f(1.0, 1.0, 1.0)
glColor3f(brightness, brightness, brightness)

dye withTexture(GL_TEXTURE_RECTANGLE_ARB, texture id, ||
self := this
Expand Down

0 comments on commit 50ad31b

Please sign in to comment.