shadergraph | Functional GLSL Linker | Graphics library

 by   unconed JavaScript Version: 2.1.3 License: Non-SPDX

kandi X-RAY | shadergraph Summary

kandi X-RAY | shadergraph Summary

shadergraph is a JavaScript library typically used in User Interface, Graphics, WebGL applications. shadergraph has no bugs, it has no vulnerabilities and it has low support. However shadergraph has a Non-SPDX License. You can install using 'npm i shadergraph' or download it from GitHub, npm.

ShaderGraph is a library for linking together GLSL snippets into stand-alone shaders. It is mainly meant to build complicated shaders 100% programmatically. But it can also act as the back-end to a live graph-based shader editor, as its graph model is persistent. Snippets can be simple one-liners, or multi-function source files. Snippets can also declare callbacks, as functions without bodies, linked in from elsewhere. This allows complicated execution flows to be built very easily. ShaderGraph is designed to play well with Three.js, but does not depend on it. It merely follows the same code/object conventions. There is no editing UI included, only a way to display a graph as an HTML/CSS/SVG diagram.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shadergraph has a low active ecosystem.
              It has 695 star(s) with 58 fork(s). There are 38 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 12 have been closed. On average issues are closed in 520 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of shadergraph is 2.1.3

            kandi-Quality Quality

              shadergraph has 0 bugs and 0 code smells.

            kandi-Security Security

              shadergraph has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              shadergraph code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              shadergraph has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              shadergraph releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shadergraph and discovered the below as its top functions. This is intended to give you an instant insight into shadergraph implemented functionality, and help decide if they suit your requirements.
            • Parse START statement .
            • generate an array of tokens
            • 11 . 2 . 4stative parser
            • Parse declarative .
            • generates a list of arguments
            • Parse input .
            • Parse statement .
            • Updates a quaternions from an angle
            • Recursively build code body .
            • Reads a token .
            Get all kandi verified functions for this library.

            shadergraph Key Features

            No Key Features are available at this moment for shadergraph.

            shadergraph Examples and Code Snippets

            No Code Snippets are available at this moment for shadergraph.

            Community Discussions

            QUESTION

            HLSL vs GLSL, in writing Unity shaders
            Asked 2021-Jan-08 at 17:19

            confused about the shading language to use ( HLSL or GLSL ), because of supporting platforms. HLSL resources are available in abundance, but I saw through the web that it's specific to DirectX (windows). Would that be a problem if I'm planning to run my application on android? -I can't rely completely on ShaderGraph-

            Thanks

            ...

            ANSWER

            Answered 2021-Jan-08 at 17:19

            You can use HLSL in Unity on Android platforms. From the documentation:

            HLSL syntax

            The HLSL language itself has two syntaxes: a “legacy” DX9-style syntax, and a more modern DX10+ style syntax.

            The difference is mostly in how texture sampling functions work:

            • The legacy syntax uses sampler2D, tex2D() and similar functions. This syntax works on all platforms.
            • The DX10+ syntax uses Texture2D, SamplerState and .Sample() functions. Some forms of this syntax do not work on OpenGL platforms, due to how textures and samplers are not different objects in OpenGL. In Unity, you can avoid problems with HLSL syntax platform support by using predefined macros to declare and sample textures. Unity expands these macros to the most appropriate syntax, depending on the platform that the shader is being compiled for.
            Shader compilers

            Different platforms use different shader compilers for shader program compilation as follows:

            • Windows and Microsoft platforms (DX11, DX12 and Xbox One) all use Microsoft’s HLSL compiler (currently FXC / D3DCompiler_47).
            • OpenGL (Core & ES), Metal and Vulkan use Microsoft’s HLSL followed by bytecode translation into GLSL, Metal or SPIR-V, using HLSLcc.
            • Other console platforms use their respective compilers (e.g. PSSL on PS4).
            • Surface Shaders use HLSL and MojoShader for code generation analysis step.

            Source https://stackoverflow.com/questions/65616799

            QUESTION

            How do you fade out an object in a scene from an animation clip?
            Asked 2020-Dec-09 at 08:59

            I have a scene in Unity, with animated assets. The animated asset is a custom prefab effect with multiple animated objects nested within it. The asset runs in a loop, all the objects are assigned a PBR shader using shadergraph. Some of the assets fade out at the end, while others simply disappear. I can control when an object disappears on the timeline by disabling it. But others need to fade away. I suspect I can fade out those objects by changing the alpha of the PBR shadergraph material at a specific point in time in the animation clip. Can anyone advise the process or links to tutorials on how to fade out an object, starting at a specific point in time in an animation clip, and also set the duration required when the object becomes completely invisible ?

            ...

            ANSWER

            Answered 2020-Dec-09 at 08:59

            To achieve what you wanted you would need to add an AnimationEvent into your Animaton.

            You can do that with the Rectangle Symbol you find over the Animation Window Properties.

            You can now use that AnimationEvent to call a Function in a Script that will fade out the object.

            Also make sure to pass in what amount of time you want to fade the object as a float and the current GameObject as an Object into the function.

            AnimationEvent Function:

            Source https://stackoverflow.com/questions/65212015

            QUESTION

            Using HDRP Rendering Pipeline
            Asked 2020-Jun-09 at 07:55

            I just tried to create a Smoke and Fire particle system in Unity version 2019.1.14f1. I installed ShaderGraph and followed a Tutorial by Brackeys. I couldn't go far because I didn't have HDRP on the project. It was simply a 3D project. I used this website to figure out how to change to HDRP. I did so, but it won't render the project. It says "Platform WebGL with device Open GLES3 is not supported, no rendering will occur". I then tried to switch back to the normal rendering system. Now it won't let me share my WebGl game. I don't know for sure that these two problem are connected, but seems like it. I don't know if that is a problem with my computer, but I have added the specs below. How do I switch my current rendering system to HDRP, so I can create a nice Fire/Smoke Particle System?

            ...

            ANSWER

            Answered 2020-Jun-09 at 07:55

            WebGL is based on OpenGL ES and unfortunately, HDRP doesnt support OpenGL ES devices so there is no way to run it on WebGL.

            However, URP (Universal Render Pipeline) would be much better way for WebGL. And yes, URP supports Shader Graph.

            Here is URP page: https://unity.com/srp/universal-render-pipeline

            Source https://stackoverflow.com/questions/62274016

            QUESTION

            How do I blend texture over other texture in unity shadergraph but only on the shadow side?
            Asked 2020-Mar-23 at 10:56

            I am currently making a game based around colonizing planets, and i would like to know how I overlap a lightmap texture of the earth on a sphere, but only at the positions wich are affected by shadow in shadergraph. I am using unity 2020.1.0a25 with the universal render pipeline.

            ...

            ANSWER

            Answered 2020-Mar-23 at 10:56

            The distribution of light across a sphere is at its most basic level determined by the dot product between the surface normal and the vector towards the light. This is called lambert shading. In shader language, it would be written like this:

            Source https://stackoverflow.com/questions/60588708

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shadergraph

            You can install using 'npm i shadergraph' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i shadergraph

          • CLONE
          • HTTPS

            https://github.com/unconed/shadergraph.git

          • CLI

            gh repo clone unconed/shadergraph

          • sshUrl

            git@github.com:unconed/shadergraph.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Graphics Libraries

            three.js

            by mrdoob

            pixijs

            by pixijs

            pixi.js

            by pixijs

            tfjs

            by tensorflow

            filament

            by google

            Try Top Libraries by unconed

            TermKit

            by unconedJavaScript

            MathBox.js

            by unconedJavaScript

            mathbox

            by unconedJavaScript

            ThreeAudio.js

            by unconedJavaScript

            CSS3D.js

            by unconedJavaScript