BitOfGold Posted April 20, 2017 Share Posted April 20, 2017 Hi folks! LudumDare starts in a day, and I'm in a hurry to prepare... I'm planning to use this Quake-ish, glitchy, dithered, scanlined postprocess shader I wrote today:http://www.babylonjs-playground.com/index.html#CGGTIB#104 Is it possible to render a scene only to the RenderTarget, without rendering to a full scale backbuffer? BTW will any of you participate in LudumDare jam or compo? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 20, 2017 Share Posted April 20, 2017 Hey good luck! so no problem to render only to your renderTarget. Just call renderTarget.render() and do not call scene.render(): https://github.com/BabylonJS/Babylon.js/blob/master/src/Materials/Textures/babylon.renderTargetTexture.ts#L224 Example here: https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.tools.ts#L793 Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted April 20, 2017 Author Share Posted April 20, 2017 Thanks!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.