-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring/fields #40
Conversation
b692733
to
1023253
Compare
The matching branch on the converter is grandchild/AVS-File-Decoder/refactoring/fields. |
src/webgl/ShaderProgram.ts
Outdated
[BlendMode.MULTIPLY]: "clamp(color * texture2D(u_srcTexture, v_position) * 256.0, 0.0, 1.0)", | ||
// [BlendMode.XOR]: "uint3(color) ^ uint3(getSrcColor())", | ||
// [BlendMode.EVERY_OTHER_PIXEL]: "mix(color, getSrcColor(), float(uint(dot(v_position, u_resolution-1.0)) & 1u))", | ||
// [BlendMode.EVERY_OTHER_LINE]: "mix(color, getSrcColor(), float(uint(v_position.y * u_resolution.y) & 1u))", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to un-comment these? If not, let's create tickets for these instead of leaving them commented out in the code.
test/func/trans/ColorMap.test.ts
Outdated
@@ -25,7 +25,7 @@ describe("ColorMap", () => { | |||
return mainTest({ | |||
expectImageSrc: "ColorMap_1.png", | |||
preset: makePreset({ | |||
key: "RED", maps, output: "AVERAGE", | |||
key: "RED", maps, output: "FIFTY_FIFTY", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the func test. Should be blendMode: "FIFTY_FIFTY"
1023253
to
bb0c09e
Compare
* AVERAGE -> FIFTY_FIFTY * SUBTRACTIVE1/2 -> SUB_DEST_SRC/SUB_SRC_DEST * add MINIMUM * add ABSOLUTE_DIFFERENCE
* Channels -> AudioChannels * Source -> AudioSource * source/channel -> audioSource/audioChannel in SuperScope * source -> audioSource in Texer
ColorMap: * ONBEATSEQUENTIAL -> ONBEAT_SEQUENTIAL * ONBEATRANDOM -> ONBEAT_RANDOM * (R+G+B)/2 -> CHANNEL_SUM_HALF * (R+G+B)/3 -> CHANNEL_AVERAGE BufferSave: * SAVERESTORE -> ALTERNATE_SAVE_RESTORE * RESTORESAVE -> ALTERNATE_RESTORE_SAVE Fix shader code indentation in ColorMap.
bb0c09e
to
1790150
Compare
Rebased onto master and fixed the requested changes (and linting errors, which I wasn't aware of. thanks circleci ;P) |
Thanks! |
The commit messages are verbose and should say it all.