DeerEngine/roe/Editor/MeshExplorer/MeshPreviewRender.as

14 lines
315 B
ActionScript

dictionary meshFrameBuffer;
FrameBuffer getMeshFrameBuffer(string mesh) {
if (meshFrameBuffer.exists(mesh))
return cast<FrameBuffer>(meshFrameBuffer[mesh]);
}
FrameBuffer generateMeshFrameBuffer(string mesh) {
FrameBuffer fb = Engine::createRGBA8FrameBuffer(mesh, 64, 64);
return fb;
}