mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
12 lines
286 B
Plaintext
12 lines
286 B
Plaintext
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);
|
|
}
|
|
} |