[React App] How to reset the profile effect on each pass? #162850
Replies: 4 comments
-
|
Shader "Custom/ResetProfileEffect" { } Second pass adds a glow effect by lightening the color. You simulate a "reset" of the profile effect in each pass by returning a baseline state in the first pass. You could enhance this by using separate render targets, or temporary buffers if using URP/HDRP. |
Beta Was this translation helpful? Give feedback.
-
|
Welcome to the GitHub Community, @svale88, we're happy you're here! You are more likely to get a useful response if you are posting your question in the applicable category and are explicit about what your project entails--giving a few more details might help someone give you a nudge in the right direction. I've gone ahead and moved it for you. Good luck! |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
@Leorev01 Thank you, but your topic appears to be off-topic and cannot be marked as an answer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hello, I'm new to coding, so ignore the complexity of my code 😊
It just seems to me (the profile effect needs to be reset when switching between colors), that is, there are profile effects for each color, but the transitions do not work properly as seen in the video, what I want is to reset the profile effect in each transition as in the other video.
I couldn't do it, I tried so hard :/ I'm new and I need help. How can we do it like in the video? I would also appreciate if you could edit and give me the relevant field.
Mine: My Video
Other: I want it to be
Thanks in advance to those who help.
ShopApp.js
ShopData.json
[ { "category": "Test", "decoration_banner": "background.jpg", "decoration_banner_title": "xxxxxx", "decoration_banner_video_none": "background.webm", "decoration_color": 0, "items": [ { "type": "banner", "decoration_name": "Power Surge", "decoration_description": "tttttt", "itemSkuId": "power_surge-banner", "banner": "power_surge", "effects_colors": [ { "banner": "power_surge", "color": "#1e90ff", "name": "Original" }, { "banner": "power_surge_2", "color": "#20b2aa", "name": "Color 2" }, { "banner": "power_surge_3", "color": "#9370db", "name": "Color 3" } ] } ] } ]profileEffect2.json
{ "power_surge": { "id": "1139323101444845690", "name": "Power Surge", "thumbnail": "power-surge/thumbnail.png", "config": { "effects": [ { "src": "power-surge/intro.png", "loop": false, "height": 880, "width": 450, "duration": 2400, "start": 0, "loopDelay": 0, "position": { "x": 0, "y": 0 }, "zIndex": 100, "randomizedSources": [] }, { "src": "power-surge/loop.png", "loop": true, "height": 880, "width": 450, "duration": 2480, "start": 4960, "loopDelay": 4960, "position": { "x": 0, "y": 0 }, "zIndex": 101, "randomizedSources": [] } ], "stillFrames": { "Thumbnail": null, "Static": null, "Reduced Motion": null } } }, "power_surge_2": { "id": "1341506445031505920", "name": "Power Surge 2", "thumbnail": "power-surge-2/thumbnail.png", "config": { "effects": [ { "src": "power-surge-2/intro.png", "loop": false, "height": 880, "width": 450, "duration": 2400, "start": 0, "loopDelay": 0, "position": { "x": 0, "y": 0 }, "zIndex": 100, "randomizedSources": [] }, { "src": "power-surge-2/idle.png", "loop": true, "height": 880, "width": 450, "duration": 2480, "start": 4960, "loopDelay": 4960, "position": { "x": 0, "y": 0 }, "zIndex": 101, "randomizedSources": [] } ], "stillFrames": { "Thumbnail": null, "Static": null, "Reduced Motion": null } } }, "power_surge_3": { "id": "1341506445044088832", "name": "Power Surge 3", "thumbnail": "power-surge-3/thumbnail.png", "config": { "effects": [ { "src": "power-surge-3/intro.png", "loop": false, "height": 880, "width": 450, "duration": 2400, "start": 0, "loopDelay": 0, "position": { "x": 0, "y": 0 }, "zIndex": 100, "randomizedSources": [] }, { "src": "power-surge-3/idle.png", "loop": true, "height": 880, "width": 450, "duration": 2480, "start": 4960, "loopDelay": 4960, "position": { "x": 0, "y": 0 }, "zIndex": 101, "randomizedSources": [] } ], "stillFrames": { "Thumbnail": null, "Static": null, "Reduced Motion": null } } } }Beta Was this translation helpful? Give feedback.
All reactions