@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
37 lines (36 loc) • 994 B
TypeScript
/**
* - The options.
*/
export type SplatMaterialOptions = {
/**
* - Custom vertex shader, see SPLAT MANY example.
*/
vertex?: string;
/**
* - Custom fragment shader, see SPLAT MANY example.
*/
fragment?: string;
/**
* - Opacity dithering enum.
*/
dither?: string;
/**
* - List of shader defines.
*/
defines?: string[];
};
/**
* @typedef {object} SplatMaterialOptions - The options.
* @property {string} [vertex] - Custom vertex shader, see SPLAT MANY example.
* @property {string} [fragment] - Custom fragment shader, see SPLAT MANY example.
* @property {string} [dither] - Opacity dithering enum.
* @property {string[]} [defines] - List of shader defines.
*
* @ignore
*/
/**
* @param {SplatMaterialOptions} [options] - The options.
* @returns {Material} The GS material.
*/
export function createGSplatMaterial(options?: SplatMaterialOptions): Material;
import { Material } from '../materials/material.js';