Pixel-Composer/scripts/d3d_material/d3d_material.gml

9 lines
240 B
Plaintext
Raw Normal View History

function __d3dMaterial(surface = noone, roughness = 0) constructor {
self.roughness = roughness;
self.surface = surface;
static getTexture = function() {
if(!is_surface(surface)) return -1;
return surface_get_texture(surface);
}
}