I’m attempting to write shaders that require some custom buffers (not vert, uv, normal or index data). Whats the best way to accomplish this, subclass the SubGeometry class and add them myself? Does Away3D have any extra buffers hanging out that can be used for stuff like this?
Custom BuffersSoftware: Away3D 4.x |
||
|
||
nikitablack, Newbie
Posted: 26 February 2014 02:45 PM Total Posts: 15 [ # 1 ] Two months passed and still no answer… Is it possible? |
||
Fabrice Closier, Administrator
Posted: 26 February 2014 04:18 PM Total Posts: 1265 [ # 2 ] Geometries have an extra custom buffer. So if you uses them they will be used. You need of course to write the specific agal for them. |
||
nikitablack, Newbie
Posted: 27 February 2014 07:46 AM Total Posts: 15 [ # 3 ] Which geometries? I look into SubGeometry and don’t see any special buffer. |
||
Fabrice Closier, Administrator
Posted: 27 February 2014 10:59 AM Total Posts: 1265 [ # 4 ] Sorry, you right. I see it’s no longer in current version. protected var _customData : Vector.<Number>; Take a look into 4.0 subGeometry to see how it was done. |
||
nikitablack, Newbie
Posted: 27 February 2014 11:14 AM Total Posts: 15 [ # 5 ] Thank you. I’ll take a look. |