0.1.14 โ€ข Published 5 years ago

glsl-reports v0.1.14

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

glsl-reports NPM Package Build Size NPM Downloads Dev Dependencies

javascript micro-library which provides a graphical interface to display the logs of your shaders using shadow dom ๐Ÿ—’๏ธ

english - french

Problemโ“

Debugging in glsl can be very difficult. we are spit in the mouth a long error that we must consult in the console. often the line indicated concerning the error is not the correct one. in addition to error, we balance the source code of the shader with. I let you imagine the horror in console when a very long shader script spits out several errors. not easy to really capture what is going on.

Solutionโ“

glsl-reports will allow you to have a graphical interface with which you will receive error logs from your shaders. thanks to this user interface you will be able to filter your errors, use the dark theme mode (effi-class if you are a shadow coder) and many other things that will happen as I develop on this project.

โš ๏ธ Disclaimer

i'm not a developer, i'm just a local guy who carries programming in his heart with the desire to learn more about the creation of development tools. this project is trying to follow in the footsteps of our safe guy @spite. well, i have slightly customized it so that you can have a workspace that is both visual but also functional. you will thank me later.

๐Ÿ› ๏ธ Features

  • ๐ŸŽ‰ ui interface for error handling: filter, theme, total number of errors rescended.
  • ๐ŸŒ web component using the shadow dom.

๐Ÿ– Theme

๐Ÿ“ฆ Install dependencies

Command line

npm i glsl-reports

OR

yarn add glsl-reports

Download

you can download the repo, then you copy the file dist/glsl-reports.js and place it in the desired location in your application.

๐Ÿš€ Start project

ok but how does your gadget work?

<script src="./glsl-reports.js"></script>

OR

import 'glsl-reports';

voilร  ! it's finished, glsl-reports is perfectly installed. skurt skurt! to be sure that you did well. create an error in your script and you should see an error appear through your new error interface.

๐Ÿšจ Tests

reports

npm run test:reports

OR

yarn test:reports

watch

npm run test:watch

OR

yarn test:watch

๐Ÿ“ Todo

  • improve ui
  • use custom properties
  • test cases
  • add the shader code with highlight for each error

๐Ÿ”— Source

ยฉ๏ธ License

Copyright ยฉ๏ธ 2019 monsieurbadia

Released under the MIT license

๐Ÿ™ Supports

logo by @mllemartins with ๐Ÿ–ค
code by @monsieurbadia with ๐Ÿ–ค

โญ๏ธ this repository if this project helped you!

0.1.14

5 years ago

0.1.11

5 years ago

0.1.12

5 years ago

0.1.13

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago