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