shader - Gradient shadow for Starling extension for lighting -
Tell me how to get it Found an example on the website winxalex.blogspot.com -> gradient-shadow-filter- Starling.html But I can not use it Thanks U
This base shade cinematographer
var program: string = "sub vt0.xy, va0.xy, vc1.xy \ n" + // world xy - Light xy = delta xy "mul vt0.xy, vt0.xy, va0.z \ n" + // delta xy * shadow multiplier (0 = 1) = shadow xy "mul vt0.xy, vt0.xy, vc0. Z \ n "+ // Shadow xy * 1000" Add vt1.xy, va0.xy, vt0.xy \ n "+ // world xy + shadow xy" mov vt1.z, vc0.xy.x \ n "+ //vt1.z = 0 "mov vt1.w, vc0.xy.y \ n" + //vt1.w = 1 "m44 option, vt1, vc2"; // project to the clip space
To make sure that you need any help from , But in this way I am creating a gradient background:
// background gradient color var top color: uint = 0x81CCC9; // Color below blue var: uint = 0xFEFFFF; // White color background: quad = new tractor (scraward, scrahite); Background Gradients. Settre Rexler (0, TopColor); Background Gradients.SetVireTaxler (1, TopColor); Background Gradient. Settre Rexler (2, Below Color); BackgroundGrand. Saving Rexler (3, Color Below); AddChild (backgroundGradient);
Comments
Post a Comment