Skip to content

Commit

Permalink
GLSL modules are now in own submodule, removed now-pointless intermed…
Browse files Browse the repository at this point in the history
…iate Lua directory; comments fixed up
  • Loading branch information
ggcrunchy committed Apr 11, 2015
1 parent c2496c2 commit 04faff6
Show file tree
Hide file tree
Showing 22 changed files with 87 additions and 1,085 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion lua/encode/utils.lua → encode/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-- Standard library imports --

-- Modules --
local effect_props = require("corona_shader.lua.effect_props")
local effect_props = require("corona_shader.effect_props")

-- Exports --
local M = {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Lua-side data-encoding routines for [0, 1023] x [0, 1) pairs, where the integer
-- part describes a quantized lattice of dimension 2^m x 2^n, s.t. m + n = 10.
--- Data-encoding routines for [0, 1023] x [0, 1) pairs, where the integer part describes a
-- quantized lattice of dimension 2^m x 2^n, s.t. m + n = 10.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Lua-side data-encoding routines for [0, 1023] x [0, 1] pairs, where the integer
-- part describes a quantized lattice of dimension 2^m x 2^n, s.t. m + n = 10.
--- Data-encoding routines for [0, 1023] x [0, 1] pairs, where the integer part describes a
-- quantized lattice of dimension 2^m x 2^n, s.t. m + n = 10.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- Lua-side data-encoding routines for <+,->[0, 1022] x [0, 1) pairs, where the sign is
-- understood to be a separate piece of information. Note that the integer range is one
-- shorter than in most encodings.
--- Data-encoding routines for <+,->[0, 1022] x [0, 1) pairs, where the sign is understood to
-- be a separate piece of information. Note that the integer range is one fewer than in most
-- encodings.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-encoding routines for [0, 1023] x [0, 1) pairs.
--- Data-encoding routines for [0, 1023] x [0, 1) pairs.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-encoding routines for [0, 1023] x [0, 1] pairs.
--- Data-encoding routines for [0, 1023] x [0, 1] pairs.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-encoding routines for [0, 31] x [0, 31] x [0, 1) triples.
--- Data-encoding routines for [0, 31] x [0, 31] x [0, 1) triples.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-encoding routines for [0, 31] x [0, 31] x [0, 1] triples.
--- Data-encoding routines for [0, 31] x [0, 31] x [0, 1] triples.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-packing routines for [0, 31] x [0, 31] x [0, 31] x [0, 31] quads.
--- Data-packing routines for [0, 31] x [0, 31] x [0, 31] x [0, 31] quads.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-encoding routines for [0, 1] x [0, 1) pairs.
--- Data-encoding routines for [0, 1] x [0, 1) pairs.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down
8 changes: 4 additions & 4 deletions lua/encode/vars/unit_pair.lua → encode/vars/unit_pair.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- Lua-side data-encoding routines for [0, 1] x [0, 1] pairs.
--- Data-encoding routines for [0, 1] x [0, 1] pairs.

--
-- Permission is hereby granted, free of charge, to any person obtaining
Expand Down Expand Up @@ -28,8 +28,8 @@ local abs = math.abs
local floor = math.floor

-- Modules --
local effect_props = require("corona_shader.lua.effect_props")
local encoding_utils = require("corona_shader.lua.encode.utils")
local effect_props = require("corona_shader.effect_props")
local encoding_utils = require("corona_shader.encode.utils")

-- Cached module references --
local _FromXY_
Expand All @@ -40,7 +40,7 @@ local M = {}

--- Adds a unit pair-style parameter to a kernel.
--
-- Some property data is also added for the parameter, cf. @{corona_shader.lua.effect_props.AddVertexProperty}.
-- Some property data is also added for the parameter, cf. @{corona_shader.effect_props.AddVertexProperty}.
-- @ptable kernel Corona shader kernel.
-- @uint index Vertex userdata component index, cf. @{VertexDatum}.
-- @string prop1 Friendly name of number #1...
Expand Down
86 changes: 0 additions & 86 deletions glsl/bump.lua

This file was deleted.

34 changes: 0 additions & 34 deletions glsl/constants.lua

This file was deleted.

48 changes: 0 additions & 48 deletions glsl/decode_vars.lua

This file was deleted.

52 changes: 0 additions & 52 deletions glsl/neighbors.lua

This file was deleted.

Loading

0 comments on commit 04faff6

Please sign in to comment.