提交 06f14424 编写于 作者: M Mr.doob

SimulationRenderer: Clean up.

上级 ebf27206
......@@ -16,17 +16,14 @@ function SimulationRenderer( WIDTH, renderer ) {
var camera = new THREE.Camera();
camera.position.z = 1;
// Init RTT stuff
gl = renderer.getContext();
if ( ! gl.getExtension( "OES_texture_float" ) ) {
if ( ! renderer.extensions.get( "OES_texture_float" ) ) {
alert( "No OES_texture_float support for float textures!" );
return;
}
if ( gl.getParameter( gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS ) === 0 ) {
if ( renderer.capabilities.maxVertexTextures === 0 ) {
alert( "No support for vertex shader textures!" );
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册