Skip to content
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

Merged
merged 7 commits into from
Jun 25, 2018
Merged

Refactoring/fields #40

merged 7 commits into from
Jun 25, 2018

Conversation

grandchild
Copy link
Contributor

The commit messages are verbose and should say it all.

@grandchild grandchild force-pushed the refactoring/fields branch 2 times, most recently from b692733 to 1023253 Compare May 29, 2018 08:49
@grandchild
Copy link
Contributor Author

The matching branch on the converter is grandchild/AVS-File-Decoder/refactoring/fields.

[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))",
Copy link
Owner

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.

@@ -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",
Copy link
Owner

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"

* 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.
@grandchild
Copy link
Contributor Author

Rebased onto master and fixed the requested changes (and linting errors, which I wasn't aware of. thanks circleci ;P)

@azeem azeem merged commit 17166a1 into azeem:master Jun 25, 2018
@azeem
Copy link
Owner

azeem commented Jun 25, 2018

Thanks!

@grandchild grandchild deleted the refactoring/fields branch June 25, 2018 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants