Jump to content

ShaderBuilder alpha version


NasimiAsl
 Share

Recommended Posts

hi everybody

https://github.com/BabylonJS/Extensions/tree/master/ShaderBuilder

finally i create ( thanks @Deltakosh a lot  and @Temechon) BJS Shader Builder  And Now i complete Documentation it is easy

but in Alpha version we have

Solid  http://www.babylonjs-playground.com/#FT2RY#1

Back http://www.babylonjs-playground.com/#FT2RY#5

Transparency

Front

Wired

Light

Map  http://www.babylonjs-playground.com/#FT2RY#0

Reflect

ReflectMap

Multi   http://www.babylonjs-playground.com/#FT2RY#0

Reference http://www.babylonjs-playground.com/#FT2RY#5

Replace Red Yellow Green Blue Cyan Pink White Black http://www.babylonjs-playground.com/#FT2RY#5

Effect http://www.babylonjs-playground.com/#FT2RY#2

Event  http://www.babylonjs-playground.com/#FT2RY#0   http://www.babylonjs-playground.com/#FT2RY#1

Inline

Range http://www.babylonjs-playground.com/#FT2RY#3 http://www.babylonjs-playground.com/#FT2RY#4

NormalMap

SpecularMap

Vertex

in Beta version 

Shadow

PostProcess

ImportLight

Filters

 request all you have problem in material and challenge ShaderBuilder for make that :)

 

Link to comment
Share on other sites

 http://www.babylonjs-playground.com/#FT2RY#38

http://www.babylonjs-playground.com/#FT2RY#39  with alpha

http://www.babylonjs-playground.com/#FT2RY#40 with back

is that your request?

 

new BABYLON.ShaderBuilder()

        .Range(
        BABYLON.Helper().InLine('discard;').Build(),  // material 1 : discard : hide all faces
        BABYLON.Helper().Solid({ r: 1. }).Build(),  // material 2 Color
        { start: 0., end: 0.,

direction: ' vec3(world * vec4(pos,1.)).y  ' });  // direction 
        
    sb.Setting.FragmentWorld  = true;  // for make Fragment World Matris


    ico.material = sb.Light({direction:'camera',normal:BABYLON.Normals.Flat,phonge:0.3,specular:3.}).BuildMaterial(scene);        
 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...