Compare commits

...

4 Commits

Author SHA1 Message Date
Jason Klebes
b8aada0385
Merge ec25b64568 into 90d544271e 2024-10-04 23:48:14 +05:30
Martin Dvořák
90d544271e
[lean/en] add space before colon (#5132)
Some checks failed
Trigger site build / deploy (push) Has been cancelled
CI / lint (push) Has been cancelled
2024-10-03 16:50:47 -07:00
Jan Knobloch
fa0e3c632f
[opengl/en] Fix typos (#5131)
Some checks failed
Trigger site build / deploy (push) Has been cancelled
CI / lint (push) Has been cancelled
2024-09-30 16:03:06 -07:00
jsk
ec25b64568 [python/en] deep/shallow copy wording confusion 2024-09-25 13:14:29 +01:00
3 changed files with 7 additions and 7 deletions

View File

@ -342,7 +342,7 @@ void main() {
We define a new input variable ```color``` which represents our color data, this data
is passed on to ```fColor```, which is an output variable of our vertex shader and
becomes an input variable for our fragment shader.
It is imporatant that variables passed between shaders have the exact same name
It is important that variables passed between shaders have the exact same name
and type.
## Handling VBO's
@ -574,7 +574,7 @@ in vec2 fTexCoords;
out vec4 outColor;
void main() {
// texture() loads the current texure data at the specified texture coords,
// texture() loads the current texture data at the specified texture coords,
// then we can simply multiply them by our color.
outColor = texture(tex, fTexCoords) * vec4(fColor, 1.0);
}
@ -685,7 +685,7 @@ Geometry shaders are inbetween the vertex and the fragment shader.
layout(location = 0) in vec3 position;
layout(location = 1) in vec3 color;
// Create an output interface block passed to the next shadaer stage.
// Create an output interface block passed to the next shader stage.
// Interface blocks can be used to structure data passed between shaders.
out VS_OUT {
vec3 color;

View File

@ -226,7 +226,7 @@ li[::-1] # Return list in reverse order => [3, 4, 2, 1]
# Use any combination of these to make advanced slices
# li[start:end:step]
# Make a one layer deep copy using slices
# Make a shallow copy using slices
li2 = li[:] # => li2 = [1, 2, 4, 3] but (li2 is li) will result in false.
# Remove arbitrary elements from a list with "del"