forked from gladiusjs/gladius
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unnecessary duplicates of procedural files, updated procedura…
…l-material to take colour parameters, reverted gladius-cubicvr libraries to versions that exist upstream on github
- Loading branch information
David Perit
committed
Jun 5, 2012
1 parent
f0d9fcd
commit 57321d1
Showing
9 changed files
with
45 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
function proc( options ) { | ||
return { | ||
color: [1, 0.2, 0] | ||
}; | ||
} | ||
function proc( options ) { | ||
options = options || {}; | ||
if (options.colorR === undefined){ | ||
options.colorR = 1; | ||
}else{ | ||
options.colorR = parseInt(options.colorR); | ||
} | ||
if (options.colorG === undefined){ | ||
options.colorG = 0.2 | ||
}else{ | ||
options.colorG = parseInt(options.colorG); | ||
} | ||
if (options.colorB === undefined){ | ||
options.colorB = 0; | ||
}else{ | ||
options.colorB = parseInt(options.colorB); | ||
} | ||
return { | ||
color: [options.colorR, options.colorG, options.colorB] | ||
}; | ||
} |
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 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
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
Large diffs are not rendered by default.
Oops, something went wrong.