Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Texture2D.CreateExternalTexture from a webgl texture

$
0
0
I'm creating a webgl texture in javascript, and trying to get back the handle pointer for the texture, so that I can use it within Texture2D.CreateExternalTexture.

Unfortunately I can't find any examples on this online!

This is the js code:
Code (JavaScript):
  1. GetCanvasTexturePointer: function () {      
  2.         var canvas = document.querySelector('#iframecanvas').contentWindow.document.querySelector('canvas');      
  3.         var texture = null;
  4.        
  5.         if (canvas != null)
  6.         {...
Texture2D.CreateExternalTexture from a webgl texture

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>