Pixel-Composer/scripts/d3d_material/d3d_material.gml

12 lines
286 B
Plaintext
Raw Normal View History

2023-08-24 11:59:05 +02:00
function __d3dMaterial(surface = noone) constructor {
self.surface = surface;
self.diffuse = 1;
self.specular = 0;
self.metalic = false;
self.shine = 1;
static getTexture = function() {
if(!is_surface(surface)) return -1;
return surface_get_texture(surface);
}
}