question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setPrecision in Program before naming

See original GitHub issue

It seems that setPrecision must be called before SHADER_NAME apply, because now we have duplicate in vertex shaders with highp precision:

precision highp float;
#define SHADER_NAME pixi-shader-4
precision highp float;

https://github.com/pixijs/pixi.js/blob/3619fa0f6e872ffca4df4127353a9f554551c750/packages/core/src/shader/Program.ts#L95

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ShukantPalcommented, Jan 12, 2021

@ivanpopelyshev is working on a better shader preprocessor. I think that’ll fix this.

1reaction
ivanpopelyshevcommented, Jan 12, 2021

Yeah! I’m working on it. Honestly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 4 Examples of the setprecision() Function in C++ - eduCBA
The setprecision is a manipulator function in C++ which is used to sets the decimal precision of floating-point values on output operations. This...
Read more >
What Is the SetPrecision Function in C++ and Examples
The C++ setprecision can also be used to format only the decimal places instead of the whole floating-point or double value. This can...
Read more >
setPrecision in Program before naming · Issue #7138 · pixijs ...
It seems that setPrecision must be called before SHADER_NAME apply, because now we have duplicate in vertex shaders with highp precision: ...
Read more >
What is the setprecision function in C++? - Educative.io
The setprecision() function is a built-in function that comes with the iomanip library. As the name suggests, it helps us to set the...
Read more >
How to use setprecision in C++ - Stack Overflow
setf(ios::showpoint); cout.precision(2);. First set the flags to fixed. Then set to show decimal points. Lastly set ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found