| 182 | | override public function drawTriangle(face3D:Triangle3D, |
|---|
| 183 | | graphics:Graphics, |
|---|
| 184 | | renderSessionData:RenderSessionData, |
|---|
| 185 | | altBitmap:BitmapData = null, |
|---|
| 186 | | altUV:Matrix = null):void { |
|---|
| 187 | | if (this._material) { |
|---|
| 188 | | try { |
|---|
| 189 | | this._material.drawTriangle(face3D , graphics , renderSessionData , altBitmap , altUV); |
|---|
| 190 | | } catch (e:Error) { |
|---|
| 191 | | |
|---|
| 192 | | } |
|---|
| 193 | | } |
|---|
| 194 | | } |
|---|
| 195 | | |
|---|
| 196 | | override public function toString():String { |
|---|
| 197 | | var s:String; |
|---|
| 198 | | s = "[MetasequoiaMaterial tex=" + this._tex + "| aplane=" + this._aplane + |
|---|
| 199 | | "| bump=" + this._bump + "| light=" + this._light + "| interactive=" + this.interactive + "]"; |
|---|
| 200 | | return s; |
|---|
| 201 | | } |
|---|
| | 183 | override public function drawTriangle(face3D:RenderTriangle, |
|---|
| | 184 | graphics:Graphics, |
|---|
| | 185 | renderSessionData:RenderSessionData, |
|---|
| | 186 | altBitmap:BitmapData = null, |
|---|
| | 187 | altUV:Matrix = null):void { |
|---|
| | 188 | if (this._material) { |
|---|
| | 189 | try { |
|---|
| | 190 | this._material.drawTriangle(face3D , graphics , renderSessionData , altBitmap , altUV); |
|---|
| | 191 | } catch (e:Error) { |
|---|
| | 192 | |
|---|
| | 193 | } |
|---|
| | 194 | } |
|---|
| | 195 | } |
|---|
| | 196 | |
|---|
| | 197 | override public function toString():String { |
|---|
| | 198 | var s:String; |
|---|
| | 199 | s = "[MetasequoiaMaterial tex=" + this._tex + "| aplane=" + this._aplane + |
|---|
| | 200 | "| bump=" + this._bump + "| light=" + this._light + "| interactive=" + this.interactive + "]"; |
|---|
| | 201 | return s; |
|---|
| | 202 | } |
|---|