mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-12 21:43:52 +01:00
1.18.3.1
This commit is contained in:
parent
761f9d5cf1
commit
e3a03ca6ca
@ -66,9 +66,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ function __3dUVSphere(radius = 0.5, hori = 16, vert = 8, smt = false) : __3dObje
|
||||
self.hori = hori;
|
||||
self.vert = vert;
|
||||
self.smooth = smt;
|
||||
projection = 0;
|
||||
|
||||
static initModel = function() { // swap H, V because fuck me
|
||||
vertex = [ array_create(vert * hori * 2 * 3) ];
|
||||
@ -39,17 +40,10 @@ function __3dUVSphere(radius = 0.5, hori = 16, vert = 8, smt = false) : __3dObje
|
||||
var hy3 = dsin(ha1) * r1;
|
||||
var hz3 = h1;
|
||||
|
||||
var u0 = ha0 / 360;
|
||||
var v0 = 0.5 - 0.5 * dsin(va0);
|
||||
|
||||
var u1 = ha1 / 360;
|
||||
var v1 = 0.5 - 0.5 * dsin(va0);
|
||||
|
||||
var u2 = ha0 / 360;
|
||||
var v2 = 0.5 - 0.5 * dsin(va1);
|
||||
|
||||
var u3 = ha1 / 360;
|
||||
var v3 = 0.5 - 0.5 * dsin(va1);
|
||||
var u0 = ha0 / 360, v0;
|
||||
var u1 = ha1 / 360, v1;
|
||||
var u2 = ha0 / 360, v2;
|
||||
var u3 = ha1 / 360, v3;
|
||||
|
||||
var ind = (i * hori + j) * 6;
|
||||
|
||||
@ -82,6 +76,29 @@ function __3dUVSphere(radius = 0.5, hori = 16, vert = 8, smt = false) : __3dObje
|
||||
vertex[0][ind + 5].setNormal(nor[0], nor[1], nor[2]);
|
||||
}
|
||||
|
||||
switch(projection) {
|
||||
case 0 :
|
||||
v0 = dsin(va0);
|
||||
v2 = dsin(va1);
|
||||
break;
|
||||
|
||||
case 1 :
|
||||
v0 = va0 / 90;
|
||||
v2 = va1 / 90;
|
||||
break;
|
||||
|
||||
case 2 :
|
||||
v0 = (2 * arctan(exp(degtorad(va0))) - pi / 2) / (pi / 2);
|
||||
v2 = (2 * arctan(exp(degtorad(va1))) - pi / 2) / (pi / 2);
|
||||
break;
|
||||
}
|
||||
|
||||
v0 = 0.5 - 0.5 * v0;
|
||||
v2 = 0.5 - 0.5 * v2;
|
||||
|
||||
v1 = v0;
|
||||
v3 = v2;
|
||||
|
||||
vertex[0][ind + 0].setUV(u0, v0);
|
||||
vertex[0][ind + 1].setUV(u1, v1);
|
||||
vertex[0][ind + 2].setUV(u2, v2);
|
||||
|
@ -40,10 +40,10 @@
|
||||
globalvar HOTKEYS, HOTKEY_CONTEXT;
|
||||
|
||||
LATEST_VERSION = 1_18_00_0;
|
||||
VERSION = 1_18_01_0;
|
||||
VERSION = 1_18_03_1;
|
||||
SAVE_VERSION = 1_18_02_0;
|
||||
VERSION_STRING = MAC? "1.18.003m" : "1.18.3";
|
||||
BUILD_NUMBER = 1_18_03_0;
|
||||
VERSION_STRING = MAC? "1.18.003m" : "1.18.3.1";
|
||||
BUILD_NUMBER = 1_18_03_1;
|
||||
|
||||
HOTKEYS = ds_map_create();
|
||||
HOTKEY_CONTEXT = ds_list_create();
|
||||
|
@ -14,26 +14,29 @@ function Node_3D_Mesh_Sphere_UV(_x, _y, _group = noone) : Node_3D_Mesh(_x, _y, _
|
||||
|
||||
newInput(in_mesh + 3, nodeValue_Bool("Smooth Normal", self, false ));
|
||||
|
||||
newInput(in_mesh + 4, nodeValue_Enum_Scroll("Projection", self, 0, [ "Lambert", "Equirectangular" ] ));
|
||||
|
||||
input_display_list = [
|
||||
__d3d_input_list_mesh, in_mesh + 0, in_mesh + 1,
|
||||
__d3d_input_list_mesh, in_mesh + 0, in_mesh + 1, in_mesh + 4,
|
||||
__d3d_input_list_transform,
|
||||
["Material", false], in_mesh + 3, in_mesh + 2,
|
||||
]
|
||||
|
||||
static processData = function(_output, _data, _output_index, _array_index = 0) { #region
|
||||
static processData = function(_output, _data, _output_index, _array_index = 0) {
|
||||
var _sideH = _data[in_mesh + 0];
|
||||
var _sideV = _data[in_mesh + 1];
|
||||
var _mat = _data[in_mesh + 2];
|
||||
var _smt = _data[in_mesh + 3];
|
||||
var _proj = _data[in_mesh + 4];
|
||||
|
||||
var object = getObject(_array_index);
|
||||
object.checkParameter({ hori: _sideH, vert: _sideV, smooth: _smt });
|
||||
object.checkParameter({ hori: _sideH, vert: _sideV, smooth: _smt, projection: _proj });
|
||||
object.materials = [ _mat ];
|
||||
|
||||
setTransform(object, _data);
|
||||
|
||||
return object;
|
||||
} #endregion
|
||||
}
|
||||
|
||||
static getPreviewValues = function() { return getSingleValue(in_mesh + 1); }
|
||||
}
|
@ -19,10 +19,13 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
|
||||
order_i = noone;
|
||||
order_y = 0;
|
||||
|
||||
rearranger = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) { #region
|
||||
rearranger = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) {
|
||||
var _arr = inputs[0].getValue();
|
||||
var _ord = inputs[1].getValue();
|
||||
|
||||
if(!is_array(_arr)) return 0;
|
||||
if(!is_array(_ord) || array_length(_ord) != array_length(_arr)) return 0;
|
||||
|
||||
var amo = array_length(_arr);
|
||||
var _fx = _x;
|
||||
var _fy = _y + ui(8);
|
||||
@ -68,6 +71,12 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
|
||||
draw_set_color(COLORS.node_composite_bg);
|
||||
break;
|
||||
|
||||
case VALUE_TYPE.color :
|
||||
if(is_numeric(_val)) {
|
||||
drawColor(_val, _fx + ui(40), _ffy + ui(4), _w - ui(40 + 8), _fsh - ui(8));
|
||||
break;
|
||||
}
|
||||
|
||||
default :
|
||||
draw_set_text(f_p2, fa_center, fa_center, COLORS._main_text);
|
||||
draw_text(_ffcx, _ffy + _fsh / 2, string(_val));
|
||||
@ -88,6 +97,7 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
|
||||
array_remove(_ord, ordering);
|
||||
array_insert(_ord, _hov, ordering);
|
||||
inputs[1].setValue(_ord);
|
||||
triggerRender();
|
||||
|
||||
if(mouse_release(mb_left)) {
|
||||
ordering = noone;
|
||||
@ -97,21 +107,19 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
|
||||
order_y = lerp_float(order_y, 0, 5);
|
||||
|
||||
return _h;
|
||||
}); #endregion
|
||||
});
|
||||
|
||||
input_display_list = [ 0, ["Rearranger", false], rearranger ];
|
||||
|
||||
static onValueFromUpdate = function(index = 0) { #region
|
||||
static onValueFromUpdate = function(index = 0) {
|
||||
if(LOADING || APPENDING) return;
|
||||
|
||||
var _arr = inputs[0].getValue();
|
||||
var _val = array_create(array_length(_arr));
|
||||
for( var i = 0, n = array_length(_arr); i < n; i++ )
|
||||
_val[i] = i;
|
||||
var _val = array_create_ext(array_length(_arr), function(i) /*=>*/ {return i});
|
||||
inputs[1].setValue(_val);
|
||||
} #endregion
|
||||
}
|
||||
|
||||
static step = function() { #region
|
||||
static step = function() {
|
||||
var _typ = VALUE_TYPE.any;
|
||||
if(inputs[0].value_from != noone) _typ = inputs[0].value_from.type;
|
||||
|
||||
@ -127,13 +135,19 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
|
||||
type = _typ;
|
||||
will_setHeight = true;
|
||||
}
|
||||
} #endregion
|
||||
}
|
||||
|
||||
static update = function(frame = CURRENT_FRAME) { #region
|
||||
static update = function(frame = CURRENT_FRAME) {
|
||||
var _arr = getInputData(0);
|
||||
var _ord = getInputData(1);
|
||||
|
||||
if(!is_array(_arr)) return;
|
||||
|
||||
if(!is_array(_ord) || array_length(_ord) != array_length(_arr)) {
|
||||
_ord = array_create_ext(array_length(_arr), function(i) /*=>*/ {return i});
|
||||
inputs[1].setValue(_ord);
|
||||
}
|
||||
|
||||
var res = [];
|
||||
|
||||
for( var i = 0; i < array_length(_arr); i++ ) {
|
||||
@ -142,13 +156,25 @@ function Node_Array_Rearrange(_x, _y, _group = noone) : Node(_x, _y, _group) con
|
||||
}
|
||||
|
||||
outputs[0].setValue(res);
|
||||
} #endregion
|
||||
}
|
||||
|
||||
static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) { #region
|
||||
draw_set_text(f_sdf, fa_center, fa_center, COLORS._main_text);
|
||||
var str = outputs[0].getValue();
|
||||
static onDrawNode = function(xx, yy, _mx, _my, _s, _hover, _focus) {
|
||||
var bbox = drawGetBbox(xx, yy, _s);
|
||||
draw_text_bbox(bbox, str);
|
||||
} #endregion
|
||||
var val = outputs[0].getValue();
|
||||
|
||||
switch(inputs[0].type) {
|
||||
case VALUE_TYPE.surface :
|
||||
|
||||
break;
|
||||
|
||||
case VALUE_TYPE.color :
|
||||
drawPalette(val, bbox.x0, bbox.y0, bbox.w, bbox.h);
|
||||
break;
|
||||
|
||||
default :
|
||||
draw_set_text(f_sdf, fa_center, fa_center, COLORS._main_text);
|
||||
draw_text_bbox(bbox, val);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -4,7 +4,6 @@
|
||||
new scrollItem("Pixel"),
|
||||
new scrollItem("Bilinear"),
|
||||
new scrollItem("Bicubic"),
|
||||
// new scrollItem("RadSin"),
|
||||
new scrollItem("Lanczos3"),
|
||||
];
|
||||
|
||||
@ -26,7 +25,7 @@
|
||||
surface_rgba32float,
|
||||
surface_r8unorm,
|
||||
surface_r16float,
|
||||
surface_r32float
|
||||
surface_r32float,
|
||||
];
|
||||
|
||||
var surface_format_name = [
|
||||
|
@ -1,5 +1,5 @@
|
||||
function Node_Corner(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "Round corner";
|
||||
name = "Round Corner";
|
||||
|
||||
newInput(0, nodeValue_Surface("Surface in", self));
|
||||
|
||||
|
@ -2419,7 +2419,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
||||
postLoad();
|
||||
}
|
||||
|
||||
if(anim_timeline && attributes.show_timeline) refreshTimeline();
|
||||
anim_timeline = attributes.show_timeline;
|
||||
if(anim_timeline) refreshTimeline();
|
||||
}
|
||||
|
||||
static inputBalance = function() { // Cross-version compatibility for dynamic input nodes
|
||||
@ -2756,9 +2757,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
||||
switch(_key) {
|
||||
case "interpolate" :
|
||||
case "oversample" :
|
||||
if(group && _val == 0) return group.getAttribute(_key);
|
||||
_val--;
|
||||
break;
|
||||
if(_val == 0 && group != noone) return group.getAttribute(_key);
|
||||
return _val;
|
||||
}
|
||||
|
||||
return _val;
|
||||
|
@ -566,7 +566,6 @@ function Node_Export(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
||||
// print($">>>>>>>>>>>>>>>>>>>> export {CURRENT_FRAME} <<<<<<<<<<<<<<<<<<<<");
|
||||
|
||||
randomize();
|
||||
directory = $"{TEMPDIR}{irandom_range(100000, 999999)}";
|
||||
exportLog = log;
|
||||
|
||||
var surf = getInputData( 0);
|
||||
@ -731,6 +730,7 @@ function Node_Export(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
||||
|
||||
static doInspectorAction = function() {
|
||||
if(!IS_CMD && (LOADING || APPENDING)) return;
|
||||
directory = $"{TEMPDIR}{irandom_range(100000, 999999)}";
|
||||
|
||||
var path = getInputData(1);
|
||||
if(path == "") return;
|
||||
|
@ -1,5 +1,5 @@
|
||||
function Node_High_Pass(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
||||
name = "High_Pass";
|
||||
name = "High Pass";
|
||||
|
||||
newInput(0, nodeValue_Surface("Surface in", self));
|
||||
|
||||
|
@ -97,7 +97,7 @@ function Node_Path_Builder(_x, _y, _group = noone) : Node(_x, _y, _group) constr
|
||||
segments[p][i] = sg;
|
||||
lengths[p][i] = l;
|
||||
lengthTotal[p] += l;
|
||||
lengthAccs[p][i] = lengthTotal;
|
||||
lengthAccs[p][i] = lengthTotal[p];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ function Node_Pixel_Math(_x, _y, _group = noone) : Node_Processor(_x, _y, _group
|
||||
var opS = _data[11];
|
||||
var mixAmo = _data[12];
|
||||
|
||||
var _oprand = global.node_math_scroll[type];
|
||||
var _oprand = global.node_math_names[type];
|
||||
setDisplayName(_oprand);
|
||||
|
||||
inputs[ 8].setVisible(false);
|
||||
|
@ -640,7 +640,7 @@ function __initNodes() {
|
||||
addNodeObject(filter, "Bloom", s_node_bloom, "Node_Bloom", [1, Node_Bloom],, "Apply bloom effect, blurring and brighten the bright part of the image.");
|
||||
addNodeObject(filter, "Trail", s_node_trail, "Node_Trail", [1, Node_Trail],, "Blend animation by filling in the pixel 'in-between' two or more frames.").setVersion(1130);
|
||||
addNodeObject(filter, "Erode", s_node_erode, "Node_Erode", [1, Node_Erode],, "Remove pixel that are close to the border of the image.");
|
||||
addNodeObject(filter, "Corner", s_node_corner, "Node_Corner", [1, Node_Corner], ["round corner"], "Round out sharp corner of the image.").setVersion(1110);
|
||||
addNodeObject(filter, "Round Corner", s_node_corner, "Node_Corner", [1, Node_Corner],, "Round out sharp corner of the image.").setVersion(1110);
|
||||
addNodeObject(filter, "Blobify", s_node_blobify, "Node_Blobify", [1, Node_Blobify],, "Round off sharp corner in BW image by bluring and thresholding.").setVersion(11650);
|
||||
addNodeObject(filter, "2D Light", s_node_2d_light, "Node_2D_light", [1, Node_2D_light],, "Apply different shaped light on the image.");
|
||||
addNodeObject(filter, "Cast Shadow", s_node_shadow_cast, "Node_Shadow_Cast", [1, Node_Shadow_Cast], ["raycast"], "Apply light that create shadow using shadow mask.").setVersion(1100);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma use(sampler)
|
||||
|
||||
#region -- sampler -- [1729740697.9444373]
|
||||
#region -- sampler -- [1730686036.7372286]
|
||||
uniform int interpolation;
|
||||
uniform vec2 sampleDimension;
|
||||
uniform int sampleMode;
|
||||
@ -69,9 +69,9 @@
|
||||
}
|
||||
|
||||
vec4 texture2Dintp( sampler2D texture, vec2 uv ) {
|
||||
if(interpolation <= 1) return texture2D( texture, uv );
|
||||
else if(interpolation == 2) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_lanczos3( texture, uv );
|
||||
if(interpolation <= 2) return texture2D( texture, uv );
|
||||
else if(interpolation == 3) return texture2D_bicubic( texture, uv );
|
||||
else if(interpolation == 4) return texture2D_lanczos3( texture, uv );
|
||||
|
||||
return texture2D( texture, uv );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user