added new layer input pass
This commit is contained in:
@@ -1,18 +1,36 @@
|
||||
{
|
||||
"id": "feedback-highlight-accumulator",
|
||||
"name": "Feedback Highlight Accumulator",
|
||||
"description": "Demonstrates shader-local feedback by accumulating only the brightest-looking parts of the image over a timed window, then resetting and starting again. The highlight selection is an approximation based on a luminance threshold rather than an exact percentile reduction.",
|
||||
"description": "Demonstrates shader-local feedback by storing a rolling 4-frame per-pixel highlight history in RGBA and displaying only the newest 3 frames. The highlight selection is an approximation based on a luminance threshold rather than an exact percentile reduction.",
|
||||
"category": "Feedback",
|
||||
"entryPoint": "shadeVideo",
|
||||
"entryPoint": "buildHistory",
|
||||
"passes": [
|
||||
{
|
||||
"id": "history",
|
||||
"source": "shader.slang",
|
||||
"entryPoint": "buildHistory",
|
||||
"output": "historyBuffer"
|
||||
},
|
||||
{
|
||||
"id": "display",
|
||||
"source": "shader.slang",
|
||||
"entryPoint": "displayHistory",
|
||||
"inputs": [
|
||||
"historyBuffer"
|
||||
],
|
||||
"output": "layerOutput"
|
||||
}
|
||||
],
|
||||
"feedback": {
|
||||
"enabled": true
|
||||
"enabled": true,
|
||||
"writePass": "history"
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"id": "highlightThreshold",
|
||||
"label": "Highlight Threshold",
|
||||
"type": "float",
|
||||
"default": 0.99,
|
||||
"default": 0.92,
|
||||
"min": 0.5,
|
||||
"max": 1.5,
|
||||
"step": 0.001,
|
||||
@@ -30,23 +48,23 @@
|
||||
},
|
||||
{
|
||||
"id": "accumulateAmount",
|
||||
"label": "Accumulate Amount",
|
||||
"label": "Contribution Amount",
|
||||
"type": "float",
|
||||
"default": 0.2,
|
||||
"default": 0.6,
|
||||
"min": 0.0,
|
||||
"max": 2.0,
|
||||
"step": 0.001,
|
||||
"description": "How much of each bright sample gets added into the running feedback image."
|
||||
"description": "Strength of each frame's highlight contribution before it is shifted into the rolling history."
|
||||
},
|
||||
{
|
||||
"id": "displayGain",
|
||||
"label": "Display Gain",
|
||||
"type": "float",
|
||||
"default": 1.0,
|
||||
"default": 2.5,
|
||||
"min": 0.0,
|
||||
"max": 4.0,
|
||||
"max": 8.0,
|
||||
"step": 0.01,
|
||||
"description": "Brightness applied to the accumulated feedback when displayed."
|
||||
"description": "Brightness applied to the sum of the most recent three stored highlight samples."
|
||||
},
|
||||
{
|
||||
"id": "baseMix",
|
||||
@@ -56,17 +74,7 @@
|
||||
"min": 0.0,
|
||||
"max": 1.0,
|
||||
"step": 0.01,
|
||||
"description": "Amount of the live source image kept under the accumulation."
|
||||
},
|
||||
{
|
||||
"id": "resetSeconds",
|
||||
"label": "Reset Seconds",
|
||||
"type": "float",
|
||||
"default": 10.0,
|
||||
"min": 1.0,
|
||||
"max": 60.0,
|
||||
"step": 0.1,
|
||||
"description": "Length of each accumulation window before the feedback resets."
|
||||
"description": "Amount of the live source image kept under the recent highlight history display."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user