Skip to content

Commit eb00d60

Browse files
committed
stuff
1 parent ebe2d33 commit eb00d60

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

webgl/lessons/resources/lesson.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ p code, h3 {
9292
width: unset;
9393
}
9494

95+
/* hope this is ok */
96+
a>img {
97+
max-width: 100%;
98+
}
99+
95100
.webgl_example {
96101
width: 100%;
97102
height: 500px;

webgl/lessons/webgl-qna-how-to-blend-colors-across-2-triangles.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ A couple of ways to fix that.
2424
One is to use a 2x2 texture with linear sampling. You have to do some extra math to get the interpolation correct because a texture only interpolates between pixels
2525

2626
```
27-
+-------+-------+
28-
| | |
29-
| +-------+ |
30-
| | | | |
31-
+---|---+---|---+
32-
| | | | |
33-
| +-------+ |
34-
| | |
35-
+-------+-------+
27+
+-------+-------+
28+
| | |
29+
| +-------+ |
30+
| | | | |
31+
+---|---+---|---+
32+
| | | | |
33+
| +-------+ |
34+
| | |
35+
+-------+-------+
3636
```
3737

3838
Above is a 4 pixel texture stretched to 14 by 6. Sampling happens between pixels so only this center area will get the gradient. Outside that area would be sampled with pixels outside the texture so using [CLAMP_TO_EDGE](https://webglfundamentals.org/webgl/lessons/webgl-3d-textures.html) or on the opposite side of the texture using REPEAT.

webgl/resources/lessons-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 GFXFundamentals.
2+
* Copyright 2021, GFXFundamentals.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)