Skip to content

Converts a glsl shader to json, listing attributes and uniforms.

Notifications You must be signed in to change notification settings

dppower/glsl-json-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This takes a set of glsl shader files (extensions: .vs, .vs.glsl, .fs, .fs.glsl)
and converts it to the follow json (based on gltf 1.0):

{   
    [id: string]: Shader; // id = Shader.name + (".vs" | ".fs")  
}  

where Shader =

{  
    name: string;  
    type: 35632 | 35633; // fs = 35632, vs = 35633  
    attributes: string[];  
    uniforms: string[];  
    source: string;  
}  

About

Converts a glsl shader to json, listing attributes and uniforms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages