Skip to content

Commit cec0b46

Browse files
committed
Add licensing notices and attributions
1 parent 8f96162 commit cec0b46

File tree

5 files changed

+35
-1
lines changed

5 files changed

+35
-1
lines changed

NOTICE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Notice
2+
3+
This project contains modified code from [https://github.com/brybrant/lava-lamp](https://github.com/brybrant/lava-lamp), licensed under the GNU General Public License v3.0.
4+
5+
Modifications are documented in the source files under [./src/lava](./src/lava)
6+
7+
This project as a whole is licensed under the GNU General Public License v3.0.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55

66
<p><a href="https://escherlies.github.io/nix-con-2025/">Visit the NixCon 2025 Website</a></p>
77
</div>
8+
9+
## Development
10+
11+
To get startet run `nix develop`.
12+
13+
## Acknowledgements
14+
15+
The mesmerizing lava lamp is the work of Matt Bryant [https://github.com/brybrant/lava-lamp](https://github.com/brybrant/lava-lamp), licensed under GPL-3.0. (See [NOTICE](./NOTICE))

src/lava/app.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// This file is based on https://github.com/brybrant/lava-lamp
2+
// Original license: GNU General Public License v3.0
3+
// See LICENSE file for details.
4+
// Modifications
5+
// - Wrap script into a start function
6+
7+
18
import * as TWGL from 'twgl.js';
29

310
import vertexShader from './glsl/vertex.glsl';
@@ -14,7 +21,7 @@ import fragmentShader from './glsl/fragment.glsl';
1421
* @returns {Function} A cleanup function that cancels the animation frame when called
1522
* @throws {Error} If WebGL context cannot be obtained or shader compilation fails
1623
*/
17-
export function startLavaAnimation({
24+
export function startLavaAnimation({
1825
backgroundColor = [0.4, 0.1, 0.4],
1926
lavaColor = [2.0, 0.8, -0.6]
2027
} = {}) {

src/lava/glsl/fragment.glsl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
// This file is based on https://github.com/brybrant/lava-lamp
2+
// Original license: GNU General Public License v3.0
3+
// See LICENSE file for details.
4+
// Modifications:
5+
// - Include uBackgroundColor and uLavaColor
6+
// - Add noise overlay shader
7+
8+
19
precision mediump float;
210

311
uniform float uTime;

src/lava/glsl/vertex.glsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is based on https://github.com/brybrant/lava-lamp
2+
// Original license: GNU General Public License v3.0
3+
// See LICENSE file for details.
4+
15
attribute vec4 position;
26

37
void main() {

0 commit comments

Comments
 (0)