Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

fisrt shader material in playground

$
0
0

http://www.babylonjs-playground.com/#CVC1M#0

 

  var sphere = BABYLON.Mesh.CreateSphere("sphere1", 16, 2, scene);
    sphere.material = eash.shader(
        eash.alpha()+
eash.range({
mat1: eash.solid(0xffff00, 1.0),
mat2:eash.noise({pos:'pos*5.'}),
dir:'pos.x+0.5',start:0,end:1})  
 
, scene);

Viewing all articles
Browse latest Browse all 388

Trending Articles