mirror of
https://github.com/gre/gl-react.git
synced 2026-01-25 16:43:36 +00:00
add experimental support of vertex shader (basic version)
This commit is contained in:
parent
c14987c321
commit
f8c19c7b57
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user