0

http://devsbook.com/est.jpgを取得する方法を教えてくださいhttp://devsbook.com/est2.jpg ウェブサイト winxalex.blogspot.com -> gradient-shadow-filter-starling で例を見つけました。 html でも使えません。ありがとう

このベース シャドウ シェーダ

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 op, vt1, vc2"; //project to clip space
4

1 に答える 1