-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduces a registerShader API to be able to add custom shaders to t… #861
Conversation
nice. allows the material component to truly be the core component while allowing people to add their own material features like refractions |
66ee74c
to
9c7c501
Compare
e4fa503
to
b7f029e
Compare
schema: { | ||
color: { default: '#FFF' , parse: parseColor }, | ||
fog: { default: true }, | ||
height: { default: 256 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add type: 'int'
ac5d4a2
to
12667d0
Compare
* | ||
* @param {object|null} oldData | ||
*/ | ||
updateTexture: function (data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this go outside the prototype?
943a880
to
58d2a33
Compare
245c9a7
to
05d7df3
Compare
Object.keys(propData).forEach(function (propName) { | ||
if (!schema[propName]) { | ||
throw new Error('Unknown component property: ' + propName); | ||
warn('Unknown component property: ' + propName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
r+wc |
…he material interface. A custom shader schema mixes in into the material when applied. Flat and standard register through the same API as the future 3r party shaders.
Introduces a registerShader API to be able to add custom shaders to t…
🌅 😎 |
…he material interface.
A custom shader schema mixes in into the material when applied.
Flat and standard register through the same API as the future 3rd party shaders.
I still have to cover all the glsl types for the uniforms but we can start reviewing to gain some time