WebGLRenderTargetOptions constructor

WebGLRenderTargetOptions(
  1. Map<String, dynamic> json
)

Implementation

WebGLRenderTargetOptions(Map<String, dynamic> json) {
  if (json["wrapS"] != null) {
    wrapS = json["wrapS"];
  }
  if (json["wrapT"] != null) {
    wrapT = json["wrapT"];
  }
  if (json["magFilter"] != null) {
    magFilter = json["magFilter"];
  }
  if (json["minFilter"] != null) {
    minFilter = json["minFilter"];
  }
  if (json["format"] != null) {
    format = json["format"];
  }
  if (json["type"] != null) {
    type = json["type"];
  }
  if (json["anisotropy"] != null) {
    anisotropy = json["anisotropy"];
  }
  if (json["depthBuffer"] != null) {
    depthBuffer = json["depthBuffer"];
  }
  if (json["mapping"] != null) {
    mapping = json["mapping"];
  }
  if (json["generateMipmaps"] != null) {
    generateMipmaps = json["generateMipmaps"];
  }
  if (json["depthTexture"] != null) {
    depthTexture = json["depthTexture"];
  }
  if (json["encoding"] != null) {
    encoding = json["encoding"];
  }
  if (json["useMultisampleRenderToTexture"] != null) {
    useMultisampleRenderToTexture = json["useMultisampleRenderToTexture"];
  }
  if (json["ignoreDepth"] != null) {
    ignoreDepth = json["ignoreDepth"];
  }
  if (json["useRenderToTexture"] != null) {
    useRenderToTexture = json["useRenderToTexture"];
  }

  samples = json["samples"];
}