You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error:Temporary register component read without being written to for source operand 2 at token 9 of vertex program.
code:
[
package
{
import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.debug.Trident;
import away3d.entities.Mesh;
import away3d.lights.PointLight;
import away3d.materials.TextureMaterial;
import away3d.primitives.CubeGeometry;
import away3d.textures.BitmapTexture;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.geom.Point;
public class TestTrident extends Sprite
{
private var view:View3D;
public function TestTrident()
{
addEventListener(Event.ADDED_TO_STAGE,init);
}
private function init(e:Event=null):void{
stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
initAway3D();
}
private function initAway3D():void{
view= new View3D();
addChild(view);
var mylight:PointLight = new PointLight();
view.scene.addChild(mylight);
var bd:BitmapData=new BitmapData(128,128,true,0xffff0000);
var texture:BitmapTexture = new BitmapTexture(bd);
var material:TextureMaterial = new TextureMaterial(texture, true, false, true);
var cube:CubeGeometry=new CubeGeometry();
var mesh:Mesh=new Mesh(cube,material);
view.scene.addChild(mesh);
view.camera.y=-300;
//comment two lines will be good
var tt:Trident=new Trident(10,true);
view.scene.addChild(tt);
}
private function onEnterFrame(e:Event):void{
view.render();
}
}
}
]
The text was updated successfully, but these errors were encountered:
error:Temporary register component read without being written to for source operand 2 at token 9 of vertex program.
code:
[
package
{
import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.debug.Trident;
import away3d.entities.Mesh;
import away3d.lights.PointLight;
import away3d.materials.TextureMaterial;
import away3d.primitives.CubeGeometry;
import away3d.textures.BitmapTexture;
}
]
The text was updated successfully, but these errors were encountered: