Skip to content

Commit

Permalink
runtime bypass for cameraRemap
Browse files Browse the repository at this point in the history
  • Loading branch information
t3kt committed Jul 25, 2024
1 parent bbccfb0 commit 6c87211
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/operators/camera/cameraRemap.glsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ReturnT thismap(CoordT p, ContextT ctx) {
vec2 uv = p;
uv = inputOp_pixelMap(uv / ctx.resolution, ctx).xy * ctx.resolution;
if (IS_TRUE(THIS_Enable)) {
uv = inputOp_pixelMap(uv / ctx.resolution, ctx).xy * ctx.resolution;
}
return inputOp_camera(uv, ctx);
}
Binary file modified src/operators/camera/cameraRemap.tox
Binary file not shown.
3 changes: 2 additions & 1 deletion src/operators/camera/cameraRemap.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
!rop
meta: !meta
opType: raytk.operators.camera.cameraRemap
opVersion: '1'
opVersion: '2'
opStatus: beta
opDef: !def
enable: !expr
expr: op('..').par.Enable
useRuntimeBypass: true
typeSpec: !ropTypes
coordType: !coordT
Coordtypevec2: true
Expand Down

0 comments on commit 6c87211

Please sign in to comment.