projects
/
featherfall2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support passing a material name to QuadC.
[featherfall2.git]
/
src
/
yuu
/
rdr.js
diff --git
a/src/yuu/rdr.js
b/src/yuu/rdr.js
index
a03cbec
..
99b8c3f
100644
(file)
--- a/
src/yuu/rdr.js
+++ b/
src/yuu/rdr.js
@@
-272,6
+272,9
@@
constructor: function (material) {
var buffer = new yuu.VertexBuffer(yuu.V3T2C4_F, 4);
this._quad = new yuu.Quad(buffer);
constructor: function (material) {
var buffer = new yuu.VertexBuffer(yuu.V3T2C4_F, 4);
this._quad = new yuu.Quad(buffer);
+ material = yf.isString(material)
+ ? new yuu.Material(material)
+ : material;
this._rdro = new yuu.Renderable(
buffer, yuu.gl.TRIANGLE_STRIP, material,
{ model: mat4.create() }, 0.0);
this._rdro = new yuu.Renderable(
buffer, yuu.gl.TRIANGLE_STRIP, material,
{ model: mat4.create() }, 0.0);