mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +01:00
- Fix node interpolation not save and load properly.
This commit is contained in:
parent
6c283eec85
commit
70d6876fe7
4 changed files with 12 additions and 12 deletions
|
@ -26,10 +26,10 @@
|
||||||
|
|
||||||
globalvar VERSION, SAVE_VERSION, VERSION_STRING, BUILD_NUMBER;
|
globalvar VERSION, SAVE_VERSION, VERSION_STRING, BUILD_NUMBER;
|
||||||
|
|
||||||
VERSION = 11551;
|
VERSION = 11552;
|
||||||
SAVE_VERSION = 11550;
|
SAVE_VERSION = 11550;
|
||||||
VERSION_STRING = "1.15.5.1";
|
VERSION_STRING = "1.15.5.2";
|
||||||
BUILD_NUMBER = 11551;
|
BUILD_NUMBER = 11552;
|
||||||
|
|
||||||
globalvar APPEND_MAP;
|
globalvar APPEND_MAP;
|
||||||
APPEND_MAP = ds_map_create();
|
APPEND_MAP = ds_map_create();
|
||||||
|
|
|
@ -61,19 +61,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function attribute_interpolation(label = false) {
|
function attribute_interpolation(label = false) {
|
||||||
attributes.interpolation = 0;
|
attributes.interpolate = 0;
|
||||||
attributes.oversample = 0;
|
attributes.oversample = 0;
|
||||||
|
|
||||||
if(label) array_push(attributeEditors, "Surface");
|
if(label) array_push(attributeEditors, "Surface");
|
||||||
array_push(attributeEditors, ["Texture interpolation", function() { return attributes.interpolation; },
|
array_push(attributeEditors, ["Texture interpolation", function() { return attributes.interpolate; },
|
||||||
new scrollBox(global.SURFACE_INTERPOLATION, function(val) {
|
new scrollBox(global.SURFACE_INTERPOLATION, function(val) {
|
||||||
attributes.interpolation = val;
|
attributes.interpolate = val;
|
||||||
triggerRender();
|
triggerRender();
|
||||||
}, false)]);
|
}, false)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function attribute_oversample(label = false) {
|
function attribute_oversample(label = false) {
|
||||||
attributes.interpolation = 0;
|
attributes.interpolate = 0;
|
||||||
attributes.oversample = 0;
|
attributes.oversample = 0;
|
||||||
|
|
||||||
if(label) array_push(attributeEditors, "Surface");
|
if(label) array_push(attributeEditors, "Surface");
|
||||||
|
|
|
@ -166,7 +166,7 @@ function shader_set_palette(pal, pal_uni = "palette", amo_uni = "paletteAmount",
|
||||||
function shader_preset_interpolation(shader = sh_sample) {
|
function shader_preset_interpolation(shader = sh_sample) {
|
||||||
gml_pragma("forceinline");
|
gml_pragma("forceinline");
|
||||||
|
|
||||||
var intp = attributes.interpolation;
|
var intp = attributes.interpolate;
|
||||||
|
|
||||||
gpu_set_tex_filter(intp);
|
gpu_set_tex_filter(intp);
|
||||||
shader_set_uniform_i(shader_get_uniform(shader, "interpolation"), intp);
|
shader_set_uniform_i(shader_get_uniform(shader, "interpolation"), intp);
|
||||||
|
@ -188,7 +188,7 @@ function shader_set_palette(pal, pal_uni = "palette", amo_uni = "paletteAmount",
|
||||||
function shader_set_interpolation(surface) {
|
function shader_set_interpolation(surface) {
|
||||||
gml_pragma("forceinline");
|
gml_pragma("forceinline");
|
||||||
|
|
||||||
var intp = attributes.interpolation;
|
var intp = attributes.interpolate;
|
||||||
|
|
||||||
gpu_set_tex_filter(intp);
|
gpu_set_tex_filter(intp);
|
||||||
shader_set_i("interpolation", intp);
|
shader_set_i("interpolation", intp);
|
||||||
|
|
Loading…
Reference in a new issue