Skip to content

Commit

Permalink
dev changes / new op editorevents
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed May 15, 2024
1 parent 6e087e6 commit dd78294
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function parse()
}
if (hasStrings)
{
op.setUiError("notnum", "Parse Error / Not all values numerical!");
op.setUiError("notnum", "Parse Error / Not all values numerical!", 1);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"authorName": "pandur",
"created": 1548108515570,
"summary": "Parse a string into an array (create, split string, stringToArray)",


"docs": {
"ports": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ function renderLight()
{
const blurAmount = 1.5 * inBlur.get() * texelSize;
if (inRenderMapActive.get()) newLight.renderPasses(inPolygonOffset.get(), blurAmount, function () { outTrigger.trigger(); });
outTexture.set(null);
outTexture.set(newLight.getShadowMapDepth());
// outTexture.set(null);
outTexture.setRef(newLight.getShadowMapDepth());

// remove light from stack and readd it with shadow map & mvp matrix
cgl.frameStore.lightStack.pop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,93 +135,11 @@
"group": "Shadow Map Settings",
"subType": "boolean"
},
{
"type": 0,
"name": "Map Size index",
"subType": "integer"
},
{
"type": 5,
"name": "Map Size",
"group": "Shadow Map Settings"
},
{
"type": 0,
"name": "Shadow Strength",
"group": "Shadow Map Settings",
"subType": "number"
},
{
"type": 0,
"name": "Near",
"group": "Shadow Map Settings",
"subType": "number"
},
{
"type": 0,
"name": "Far",
"group": "Shadow Map Settings",
"subType": "number"
},
{
"type": 0,
"name": "Bias",
"group": "Shadow Map Settings",
"subType": "number"
},
{
"type": 0,
"name": "Polygon Offset",
"group": "Shadow Map Settings",
"subType": "integer"
},
{
"type": 0,
"name": "Normal Offset",
"group": "Shadow Map Settings",
"subType": "number"
},
{
"type": 0,
"name": "Blur Amount",
"group": "Shadow Map Settings",
"subType": "number"
},
{
"type": 0,
"name": "Enable Advanced",
"group": "Advanced Options",
"subType": "boolean"
},
{
"type": 0,
"name": "MSAA index",
"subType": "integer"
},
{
"type": 5,
"name": "MSAA",
"group": "Advanced Options"
},
{
"type": 0,
"name": "Texture Filter index",
"subType": "integer"
},
{
"type": 5,
"name": "Texture Filter",
"group": "Advanced Options"
},
{
"type": 0,
"name": "Anisotropic index",
"subType": "integer"
},
{
"type": 5,
"name": "Anisotropic",
"group": "Advanced Options"
}
],
"portsOut": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ videoElement.setAttribute("muted", "");
videoElement.setAttribute("playsinline", "");
videoElement.setAttribute("style", inCss.get());
op.patch.cgl.canvas.parentElement.appendChild(videoElement);
// let oldCanvas=op.patch.cgl.canvas;

let tex = null;
let initingDevices = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
{
"type": 0,
"name": "Available",
"subType": "number"
"subType": "boolean"
},
{
"type": 0,
Expand Down Expand Up @@ -180,7 +180,6 @@
},
"summary": "Use your webcam camera as a texture",
"issues": "",

"youtubeids": [],
"docs": {
"ports": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@
"docs": {
"ports": []
},

"exampleProjectId": "4VpJz6",
"issues": "",
"caniusequery": "",

"youtubeids": [],
"changelog": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const
outSaving = op.outTrigger("Saving Patch"),
inTriggerChanged = op.inTriggerButton("Set Changed Patch");

op.patch.on("uiSavePatch", () =>
{
outSaving.trigger();
});

inTriggerChanged.onTriggered = () =>
{
if (!CABLES.UI) return;
gui.savedState.setUnSaved("ui event op", 0);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"id": "31add1df-b4ce-486a-bbad-3291e07d8b76",
"changelog": [
{
"message": "created op",
"author": "pandur",
"date": 0,
"type": "new"
},
{
"message": "created op\t",
"type": "new",
"author": "pandur",
"date": 1715092320586
}
],
"authorName": "pandur",
"created": 1632840113349,
"layout": {
"portsIn": [
{
"type": 1,
"name": "Set Changed Patch"
}
],
"portsOut": [
{
"type": 1,
"name": "Saving Patch"
}
]
}
}

0 comments on commit dd78294

Please sign in to comment.