Fix rt size

This commit is contained in:
luboslenco
2018-06-30 19:07:29 +02:00
parent f3c0dd9c9b
commit c37b628ac1
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -440,7 +440,11 @@ class UINodes extends iron.Trait {
frag.add_uniform('float brushScale', '_brushScale');
// TODO: use prescaled value from VS
Cycles.texCoordName = 'fract(sp * brushScale)'; // Texture projection - project
// Sticker
// frag.write('if (sp.x * brushScale < 0.0 || sp.y * brushScale < 0.0 || sp.x * brushScale > 1.0 || sp.y * brushScale > 1.0) { discard; return; }');
}
var sout = Cycles.parse(canvas, con_paint, vert, frag, null, null, null, matcon);
Cycles.texCoordName = 'texCoord';
var base = sout.out_basecol;
+2 -2
View File
@@ -401,8 +401,8 @@ class RenderPathDeferred {
// Material preview
var t = new RenderTargetRaw();
t.name = "texpreview";
t.width = 50;
t.height = 50;
t.width = 1;
t.height = 1;
t.format = 'RGBA32';
path.createRenderTarget(t);
}