Enabling an extension on a Three.js shader

前端 未结 2 2022
孤街浪徒
孤街浪徒 2021-02-20 03:21

How can I enable an extension on a Three.js shader?

My code so far:

getting extension:

var domElement = document.createElement( \'canvas\' );
var         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-20 04:04

    You should also be able to do this:

    renderer.context.getExtension('OES_standard_derivatives');
    

提交回复
热议问题