add experimental support of vertex shader (basic version)

This commit is contained in:
Gaëtan Renaudeau 2017-08-29 17:05:46 +02:00
parent c14987c321
commit f8c19c7b57

View File

@ -13,7 +13,8 @@ const ShaderID = "ShaderID";
* }
*/
type ShaderDefinition = {|
frag: GLSLCode
frag: GLSLCode,
vert?: GLSLCode
|};
export type { ShaderDefinition };
@ -98,7 +99,7 @@ export function shaderDefinitionToShaderInfo(
): ShaderInfo {
return {
frag: definition.frag,
vert: staticVert // FIXME this is static for now. we will eventually improve this.
vert: definition.vert || staticVert // FIXME this is somewhat experimental for now, vert implement needs to expect a _p attribute
};
}