Three.js renderer.autoClear 属性不起作用? [英] Three.js renderer.autoClear property not working?

查看:79
本文介绍了Three.js renderer.autoClear 属性不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让渲染器在前一帧的顶部写入.如果我理解 autoClear 的上下文正确,renderer.autoClear = false;应该使这成为可能,但我似乎无法使其工作.

I'm trying to make the renderer write on top of the previous frame. If I understand the context of autoClear correct, renderer.autoClear = false; should make this possible, however I can't seem to make it work.

这是一个代码笔示例:http://codepen.io/anon/pen/ifLEz?editors=001

renderer.autoClear = false;

如果我遗漏了一点,请随意分叉并粘贴解决方案:)

If I'm missing a point, feel free to fork it and paste the solution :)

推荐答案

使用

renderer = new THREE.WebGLRenderer({antialias: true, preserveDrawingBuffer: true});

这篇关于Three.js renderer.autoClear 属性不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆