Skip to content

ovilab/ShaderNodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6c736b6 · Mar 21, 2017

History

84 Commits
Mar 21, 2017
Mar 21, 2017
Sep 5, 2016
Mar 21, 2017
Sep 5, 2016
Oct 4, 2016
Mar 21, 2017
Sep 5, 2016
Oct 14, 2016
Sep 5, 2016
Oct 4, 2016

Repository files navigation

ShaderNodes

ShaderNodes is a shader generator for Qt3D inspired by material designers found in 3D software like Blender. It produces GLSL shaders based on an object graph built in QML or C++.

Currently, only graphs built in QML are supported.

The simplest way to use ShaderNodes is to use the ShaderBuilderMaterial. This can be used directly in place of any Qt3D material:

Entity {
    components: [
        ShaderBuilderMaterial {
            id: material
            fragmentColor: StandardMaterial {
                color: "green"
                normal: Bump {
                    texture: Noise {
                        vector: material.fragment.position
                    }
                }
            }
        },
        SphereMesh {
            id: mesh
        }
    ]
}

You can also build your own materials by using a ShaderBuilderEffect or by generating the shader code with ShaderBuilder directly.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published